insert_segment#

Polyline.insert_segment(points, segment=None)[source]#

Add a segment to an existing polyline.

Parameters:
pointsList

List of positions of the points that define the segment to insert. Either the starting point or ending point of the segment list must match one of the vertices of the existing polyline.

segmentstr or pyaedt.modeler.Primitives.PolylineSegment, optional

Definition of the segment to insert. For the types "Line" and "Arc", use their string values "Line" and "Arc". For the types "AngularArc" and "Spline", use the pyaedt.modeler.Primitives.PolylineSegment object to define the segment precisely. The default is None.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.InsertPolylineSegment