Additional functions

; (semicolon)

If you specify a semicolon in a cell at the end or in between cells with AutoCAD commands you force a newline in the scriptfile. You sometimes need this to exit AutoCAD commands or explicitly end the input of text values.

/* comment */

All data in cells that start with /* will be skiped and interpreted as comment

=POINT(X, Y)

Pairs up the X and Y coördinate and returns a text which is allways valid in a AutoCAD scriptfile.
The X and Y values are seperated by a komma and the decimal seperator will allways show up as a dot. Regardles of the Regional Settings of your Windows system!

X is the X coördinate of a point
Y is the Y coördinate of a point

=NUMBER(N)

Returns a text which is allways valid in a AutoCAD scriptfile. Again the the decimal seperator will allways show up as a dot. Regardles of the Regional Settings of your Windows system!

N is the number to be returnd as a text

=ANGLE(X1, Y1, X2, Y2)

Returns an angle in radians between two points

X1 is the X coördinate of the first point
Y1 is the Y coördinate of the first point
X2 is the X coördinate of the second point
Y2 is the Y coördinate of the second point

=DISTANCE(X1, Y1, X2, Y2)

Returns the distance between between two points

X1 is the X coördinate of the first point
Y1 is the Y coördinate of the first point
X2 is the X coördinate of the second point
Y2 is the Y coördinate of the second point

=ROTATE(X, Y, a, Output)

Rotates a point around 0,0 (UCS origin) and returns the X or Y value

X is the X coördinate of the point
Y is the Y coördinate of the point
a is the angle in radians, positive values will result in CCW (counter clockwise) rotation
Output is either 1 or 0 resulting in returning the the X or the Y coördinate of the rotated point