2012

Table Of Contents
CAL prompts for a circle or arc and an object. It then determines the midpoint
between the center of the circle or arc and the end of the selected object.
Using the Midpoint Snap mode, in the following example CAL prompts for
an object and returns a point 1 unit in the Y direction from the midpoint of
the selected object:
mid+[,1]
The following example uses the Endpoint Snap mode to calculate the centroid
of a triangle defined by three endpoints:
(end+end+end)/3
See also:
Use the Command Line Calculator
Convert Points Between UCS and WCS
Normally, the program assumes all coordinates to be relative to the current
UCS. The following functions convert points between UCS and WCS.
w2u(p1) Converts point p1 expressed in the WCS to the current UCS.
u2w(p1) Converts point p1 expressed in the current UCS to the WCS.
You can use w2u to find the WCS origin in terms of the current UCS:
w2u([0,0,0])
Filtering the X,Y, and Z Components of a Point or Vector
The following functions filter the X, Y, and Z components of a point or vector.
Point-filter functions
DescriptionFunction
X and Y components of a point; Z component is set to 0.0xyof(p1)
X and Z components of a point; Y component is set to 0.0xzof(p1)
Y and Z components of a point; X component is set to 0.0yzof(p1)
Commands | 173