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)