insert_segment#
- Polyline.insert_segment(points, segment=None)[source]#
Add a segment to an existing polyline.
- Parameters:
- points
List
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.
- segment
str
oransys.aedt.core.modeler.cad.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 theansys.aedt.core.modeler.cad.primitives.PolylineSegment
object to define the segment precisely. The default isNone
.
- points
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oEditor.InsertPolylineSegment