2011

Table Of Contents
Calculate the Length of a Vector
Quick Reference
See also:
Use the Command Prompt Calculator
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])
Obtain a Point by Cursor
Quick Reference
See also:
Use the Command Prompt Calculator
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 theLASTPOINT 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]
Calculate the Length of a Vector | 161