
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 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]
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
>> Expression: @+3*vec1(cen,cen)
The first point of the line is 1 unit in the Y direction from the center of the
first selected circle. The second point of the line is 3 units away from the first
point. The direction of the line is from the center of the first selected circle
to the center of the second selected circle.
Use Snap Modes in Arithmetic Expressions
You can use Snap modes as parts of arithmetic expressions. The program
prompts you to select an object and returns the coordinate of the appropriate
snap point. Using arithmetic expressions with Snap modes greatly simplifies
entering coordinates relative to other objects.
When you use these Snap modes, enter only the three-character name. For
example, when you use the Center Snap mode, enter
cen
. CAL Snap modes
set the value of the LASTPOINT system variable.
CAL Snap modes
Snap mode
Abbreviation
ENDPOINT
END
Obtain a Point by Cursor | 197
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: ......