CreateText (Layout Editor)
Use: Creates a text primitive object and adds it to the current layout.
Syntax: CreateText <text_description>
Return Value: Returns the name of the newly created object.
Parameters: <text_description>:
Array("NAME:Contents",
"textGeometry:=", <text_geometry>)
<text_geometry> :
Array("LayerName:=", <layer_name>,
"x:=", <value>, // origin X
"y:=", <value>, // origin Y
"ang:=", <value>, // rotation
"isPlot:=", <bool>, // is it plotted or not
"font:=", <font_name>,
"size:=", <value>,
"weight:=", <text_weight>,
"just:=", <text_justification>,
"mirror:=", <bool>,
"text:=", <quoted_string>) // text itself
<bool> : true | false
<font_name> : quoted string, a font name
<text_weight> : integer
Thin = 0,
ExtraLight = 1
Light = 2
Normal = 3
Medium = 4
SemiBold = 5
Bold = 6
ExtraBold = 7
Heavy =8
<text_justification> : integer
LeftTop = 0
LeftBase = 1
LeftBottom = 2
CenterTop = 3
CenterBase= 4
CenterBottom = 5
RightTop = 6
RightBase = 7
RightBottom = 8