2013

Table Of Contents
Calculate the Length of a Vector
The abs function calculates the length of a vector.
abs(v) Calculates the length of vector v, a nonnegative real number.
In spherical coordinates (dist<ang<ang), the dist is the length of the vector.
The following example calculates the length of the vector [1,2,3]:
abs([1,2,3])
See also:
Use the Command Prompt Calculator
Obtain a Point by Cursor
To enter a point using the pointing device, use the cur function. The program
prompts you to specify a point and uses the coordinate values of the point in
the expression. The point coordinate values are expressed in terms of the
current UCS. The cur function sets the value of the
LASTPOINT (page 1383)
system variable.
The following example adds the vector [3.6,2.4,0]the result of 1.2*[3,2]to
the point you select. This expression produces a point that is offset from the
selected point.
cur+1.2*[3,2]
See also:
Use the Command Prompt Calculator
Obtain the Last-Specified Point
Use the character in the expression to obtain the coordinate of the last point,
as shown in the following example:
Command: line
Specify first point: 'cal
>> Expression: cen+[0,1]
>> Select entity for CEN snap: Select a circle or an arc
Specify next point or [Close/Undo]: 'cal
C Commands | 175