create_line#

TwinBuilderComponents.create_line(points, color=0, width=0)[source]#

Draw a graphical line.

Parameters:
pointslist

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".

widthfloat, optional

Width of the line. The default is 0.

Returns:
ansys.aedt.core.modeler.cad.object_3dcircuit.Line

Line Object.

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