create_line#

TwinBuilderComponents.create_line(points_array, color=0, line_width=0)[source]#

Draw a graphical line.

Parameters:
points_arraylist

A nested list of point coordinates. For example, [[x1, y1], [x2, y2], ...].

colorstr or 3 item list, optional

Color or the line. The default is "0".

line_widthfloat, optional

Width of the line. The default is 0.

Returns:
pyaedt.modeler.cad.object3dcircuit.Line

Line Object.

>>> :obj:`oEditor.CreateLine`
    ..