CreateLine (Layout Editor)

Use: Creates a line primitive object.

Syntax: CreateLine <line_description>

Return Value: Returns the name of the newly created object.

Parameters: <line_description>:

Array("NAME:Contents",

"lineGeometry:=", <line_geometry>)

<line_geometry> :

Array("LayerName:=",<layer_name>,

"lw:=", <value>, // line width

"endstyle:=", <end_style>,

"joinstyle:=",<join_style>,

<vertex_sequence> )

 

<end_style> : integer

FlatEnd = 0

ExtendedEnd = 1

RoundEnd = 2

 

<join_style> : integer

UnmiteredJoin = 0

MiteredJoin = 1

OptimallyMiteredJoin = 2

RadiallyMiteredJoin = 3

ChordMiteredJoin = 4

 

<vertex_sequence>:

"n:=", integer, // the total count of the vertices

"x0:=",<value>, "y0:=", <value>,

"x1:=",<value>, "y1:=", <value>,

etc. up to vertex count)

VB Example:

oEditor.CreateLine

Array("NAME:Contents",

"lineGeometry:=",

Array("Layer:=", 6,

"Name:=", "line_1",

"LayerName:=", "Top",

"lw:=", "2mil",

"endstyle:=", 0,

"joinstyle:=", 0,

"n:=", 4,

"x0:=", "-32mm", "y0:=", "2mm",

"x1:=", "-5mm", "y1:=", "12mm",

"x2:=", "1mm", "y2:=", "-4mm",

"x3:=", "19mm", "y3:=", "3mm"))