EditPolyline

Modifies a specified polyline. See: CreatePolyline.

UI Access N/A
Parameters
Name Type Description
<SelectionsArray> Array Structured array. See: SelectionsArray.

<Parameters>

Array

Structured array.

Array("NAME:PolylineParameters",

"IsPolylineCovered:=", <bool>,

"IsPolylineClosed:=", <bool>,

<PolylinePointsArray>,

<PolylineSegmentsArray>)

     <PolylinePointsArray> 

Array

Array("NAME:PolylinePoints", <OnePointArray>,

<OnePointArray>, ...)

          <OnePointArray>

Array

Array("NAME:PLPoint",

"X:=", <value>,

"Y:=", <value>,

"Z:=", <value>))

     <PolylineSegmentsArray>

Array

<PolylineSegmentsArray>

Array("NAME:PolylineSegments",

<OneSegmentArray>, <OneSegmentArray>, ...)

          <OneSegmentArray>

Array

Array("NAME:PLSegment",

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

"StartIndex:=", <value>,

"NoOfPoints:=", <value>)

Return Value None.

Python Syntax

EditPolyline(<SelectionsArray>, <Parameters>)

Python Example

oEditor.EditPolyline(

["NAME:Selections",

"Selections:=", "Polyline1"]

["NAME:PolylineParameters",

"IsPolylineCovered:=" , True,

"IsPolylineClosed:=" , False,

["NAME:PolylinePoints",

["NAME:PLPoint",

"X:=" , "20000mm",

"Y:=" , "-20000mm",

"Z:=" , "0mm"

],

["NAME:PLPoint",

"X:=" , "-90000mm",

"Y:=" , "20000mm",

"Z:=" , "0mm"

],

["NAME:PLPoint",

"X:=" , "10000mm",

"Y:=" , "-140000mm",

"Z:=" , "0mm"

]

],

["NAME:PolylineSegments",

["NAME:PLSegment",

"SegmentType:=" , "Line",

"StartIndex:=" , 0,

"NoOfPoints:=" , 2

],

["NAME:PLSegment",

"SegmentType:=" , "Line",

"StartIndex:=" , 1,

"NoOfPoints:=" , 2

]

],

["NAME:PolylineXSection",

"XSectionType:=" , "None",

"XSectionOrient:=" , "Auto",

"XSectionWidth:=" , "0mm",

"XSectionTopWidth:=" , "0mm",

"XSectionHeight:=" , "0mm",

"XSectionNumSegments:=" , "0",

"XSectionBendType:=" , "Corner"

]]

)