CAL Snap modes
Snap mode
Abbreviation
INSERT
INS
INTERSECTION
INT
MIDPOINT
MID
CENTER
CEN
NEAREST
NEA
NODE
NOD
QUADRANT
QUA
PERPENDICULAR
PER
TANGENT
TAN
The following example uses the Center and Endpoint Snap modes in a CAL
expression:
(cen+end)/2
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
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.
u2w(p1)
Converts point p1 expressed in the current UCS to the WCS.
198 | Chapter 5
Summary of Contents for AUTOCAD 2006
Page 1: ...February 2005 AutoCAD 2006 Command Reference ...
Page 24: ......
Page 30: ...6 ...
Page 212: ...188 ...
Page 448: ...424 ...
Page 554: ...530 ...
Page 584: ...560 ...
Page 588: ...564 ...
Page 660: ...636 ...
Page 750: ...726 ...
Page 760: ...736 ...
Page 960: ...936 ...
Page 1194: ...1170 ...
Page 1244: ...Undo Reverses the most recent change made by TRIM 1220 Chapter 21 ...
Page 1310: ...1286 ...
Page 1328: ...1304 ...
Page 1354: ...Zoom Window Zooms to display an area specified by a rectangular window 1330 Chapter 26 ...
Page 1490: ......