2013

Table Of Contents
The following are valid points:
[1,2] is the same as [1,2,0]
[,,3] is the same as [0,0,3]
[ ] is the same as [0,0,0]
In the following example, the point is entered in the relative spherical
coordinate system with respect to the (WCS). The distance is 1+2=3; the angles
are 10+20=30 degrees and 45 degrees, 20 minutes.
[ *1+2<10+20<45d20"]
The following is a valid point that contains arithmetic expressions as its
components:
[2*(1.0+3.3),0.4-1.1,2*1.4]
The following example uses the Endpoint object snap and the vector [2,0,3]
to calculate a point that is offset from a selected endpoint:
end + [2,,3]
The calculated point is offset 2 units in the X direction and 3 units in the Z
direction relative to the selected endpoint.
See also:
Use the Command Prompt Calculator
Use AutoLISP Variables
You can use AutoLISP variables within arithmetic expressions. The variables
must be one of the following types: real, integer, or 2D or 3D point (vector).
This example defines a point located 5 units in the X direction and 1 unit in
the Y direction from the point stored in AutoLISP variable A.
A+[5,1]
If you enter an AutoLISP variable with a name containing a character with
special meaning in CAL, such as +, -, *, or /, enclose the variable name in
apostrophes ('), for example:
'number-of-holes'
170 | Chapter 2 Commands