insert_segment#
- Polyline.insert_segment(position_list, segment=None)[source]#
Add a segment to an existing polyline.
- Parameters:
- position_list
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
orpyaedt.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 thepyaedt.modeler.Primitives.PolylineSegment
object to define the segment precisely. The default isNone
.
- position_list
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oEditor.InsertPolylineSegment