CreatePolyline

Creates a polyline.

UI Access Draw > Line.
Parameters
Name Type Description

<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>)

<AttributesArray> Array Structured array. See: AttributesArray.
Return Value None.

Python Syntax

CreatePolyline(<Parameters>, <Attributes>)

Python Example

oEditor.CreatePolyline(

["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"

]],

["NAME:Attributes",

"Name:=" , "Polyline1",

"Flags:=" , "",

"Color:=" , "(143 175 143)",

"Transparency:=" , 0,

"PartCoordinateSystem:=", "Global",

"UDMId:=" , "",

"MaterialValue:=" , "\"copper\"",

"SurfaceMaterialValue:=", "\"\"",

"SolveInside:=" , False,

"ShellElement:=" , False,

"ShellElementThickness:=", "0mm",

"IsMaterialEditable:=" , True,

"UseMaterialAppearance:=", False,

"IsLightweight:=" , False

])

VB Syntax

CreatePolyline <Parameters>, <Attributes>

VB Example

oEditor.CreatePolyline Array("NAME:PolylineParameters", "IsPolylineCovered:=", true, "IsPolylineClosed:=", _

false, Array("NAME:PolylinePoints", Array("NAME:PLPoint", "X:=", "40000mm", "Y:=", _

"50000mm", "Z:=", "0mm"), Array("NAME:PLPoint", "X:=", "-150000mm", "Y:=", "-50000mm", "Z:=", _

"0mm")), Array("NAME:PolylineSegments", Array("NAME:PLSegment", "SegmentType:=", "Line", "StartIndex:=", _

0, "NoOfPoints:=", 2)), Array("NAME:PolylineXSection", "XSectionType:=", "None", "XSectionOrient:=", _

"Auto", "XSectionWidth:=", "0mm", "XSectionTopWidth:=", "0mm", "XSectionHeight:=", _

"0mm", "XSectionNumSegments:=", "0", "XSectionBendType:=", "Corner")), Array("NAME:Attributes", "Name:=", _

"Polyline2", "Flags:=", "", "Color:=", "(143 175 143)", "Transparency:=", 0, "PartCoordinateSystem:=", _

"Global", "UDMId:=", "", "MaterialValue:=", "" & Chr(34) & "copper" & Chr(34) & "", "SurfaceMaterialValue:=", _

"" & Chr(34) & "" & Chr(34) & "", "SolveInside:=", false, "ShellElement:=", _

false, "ShellElementThickness:=", "0mm", "IsMaterialEditable:=", true, "UseMaterialAppearance:=", _

false, "IsLightweight:=", false)