InsertPolylineSegment

Insets a polyline segment before or after a specified existing segment.

UI Access Draw > Line Segment > [Selection].
Parameters
Name Type Description
<Parameters> Array Structured array.

Array("NAME:Insert Polyline Segment",

"Selections:=" , <string>,

"Segment Indices:=" , <array containing integers>,

"At Start:=" , <boolean>,

"SegmentType:=" , <string "Line", "Arc", "Spline", or "AngularArc">,

<PolylinePointsArray>

<PolylinePointsArray> Array Structured array. See: CreatePolyline.
Return Value None.

Python Syntax

InsertPolylineSegment(<Parameters>)

Python Example

oEditor.InsertPolylineSegment(

["NAME:Insert Polyline Segment",

"Selections:=" , "Polyline1:CreatePolyline:1",

"Segment Indices:=" , [0],

"At Start:=" , True,

"SegmentType:=" , "Line",

["NAME:PolylinePoints",

["NAME:PLPoint",

"X:=" , "1.1mm",

"Y:=" , "0.8mm",

"Z:=" , "0mm"

],

["NAME:PLPoint",

"X:=" , "0.6mm",

"Y:=" , "-0.8mm",

"Z:=" , "0mm"

]

]

])

VB Syntax

InsertPolylineSegment <Parameters>

VB Example

oEditor.InsertPolylineSegment Array("NAME:Insert Polyline Segment", "Selections:=", _

"Polyline1:CreatePolyline:1", "Segment Indices:=", Array(1), "At Start:=", _

false, "SegmentType:=", "Spline", Array("NAME:PolylinePoints", Array("NAME:PLPoint", "X:=", _

"-1.4mm", "Y:=", "0.4mm", "Z:=", "0mm"), Array("NAME:PLPoint", "X:=", "0.5mm", "Y:=", _

"1.1mm", "Z:=", "0mm"), Array("NAME:PLPoint", "X:=", "0.7mm", "Y:=", "-2.1mm", "Z:=", _

"0mm"), Array("NAME:PLPoint", "X:=", "0.4mm", "Y:=", "-1.1mm", "Z:=", "0mm")))