Script Drawing



	

Help Section

Primative Drawing

Line

line x,y x,y

Example:
line 100,100 200,50

Rectangle

rect x,y width height

Example:
rect 100,100 200,50

Circle

circle xc,yc radius

Example:
circle 100,100 50

Arc

arc xc,yc radius start_angle end_angle

Example:
arc 100,100 50 0 135

Text

text x,y "text"

Example:
text 100,100 "Hello world"

Leader

leader x,y x,y x,y "text" onright

Example:
leader 100,100 150,150 200,150 "Column C1" true

Poly line

polyline x,y x,y x,y…… radius close

Example:
polyline 100,100 300,100 300,200 400,200 20 false

Dimension alligned

DIMALIGN x,y x,y offset

Example:
dimalign 100,100 100,300 50

Drawing Settings

Sheet Scale

unitscale scale

Example:
unitscale 4

UCS

UCS x,y rotation scale

Example:
UCS 100,100 45 2

Text Align

textAlign "mode"

Example:
textAlign 100,100 "right"

Line Width

lineWidth width

Example:
lineWidth 5

Line Dash Style

setLineDash [l,l,l]

Example:
setLineDash [20,10,5]

Fill Mode

fill true/false"

Example:
fill true

Fill color or pattern

color "value"

Example:
color "red"

Line Color

strokeColor "text"

Example:
strokeColor "black"

Tick size

ticksize arrow dimext

Example:
ticksize 10 10

Advance Drawing

Array input

[v1, v2, v3, v4 ……]

Example:
circle [100, 150, 200, 250],100 50
circle 100,100 [30,40,50,60]

Mathematic Variable

assign "name" value

Example:
assign "x1" 12.6

Conditional loop

while logical expression …………… do

Example:
assign "x" 0
while x<100 line x,100 x+100,100
assign "x" x+10
do

Layer

layer "name"

Example:
layer "grid"

Creating block

startblock "name" …………… endblock

Example:
			startblock "marker"
				circle 0,0 30
				rect -10,-10 20,20
			endblock
			

Inserting block

insert "name" x,y theta scale

Example:
insert "marker" 100,100 45 1