
Numeric functions
Description
Function
Absolute value of the number
abs(real)
Number rounded to the nearest integer
round(real)
Integer portion of the number
trunc(real)
Angles in radians converted to degrees; for example, r2d(pi) converts
the pi radians to 180 degrees
r2d(angle)
Angles in degrees converted to radians; for example, d2r(180) converts
180 degrees to radians and returns the value of pi
d2r(angle)
The constant pi
pi
Calculate a Vector from Two Points
The functions
vec
and
vec1
calculate a vector from two points.
vec(p1,p2)
Provides the vector from point p1 to point p2.
vec1(p1,p2)
Provides the unit vector from point p1 to point p2.
The following example uses CAL to move selected objects 3 units in the
direction from the center of one selected circle to the center of another selected
circle:
Command: move
Select objects
Specify base point or displacement: 'cal
>> Expression: 3*vec1(cen,cen)
Select entity for CEN snap: Specify a circle or an arc
Specify second point of displacement or <use first point as displacement>: Specify
a point or press ENTER
The following examples illustrate the meaning of vector and point calculations.
Examples of vector and point calculations
Meaning
Expression
Determines vector translation from point a to point b.
vec(a,b)
Calculate a Vector from Two Points | 195
Содержание AUTOCAD 2006
Страница 1: ...February 2005 AutoCAD 2006 Command Reference ...
Страница 24: ......
Страница 30: ...6 ...
Страница 212: ...188 ...
Страница 448: ...424 ...
Страница 554: ...530 ...
Страница 584: ...560 ...
Страница 588: ...564 ...
Страница 660: ...636 ...
Страница 750: ...726 ...
Страница 760: ...736 ...
Страница 889: ...You can display more options in the Plot dialog box by clicking the More Options button Plot Dialog Box 865 ...
Страница 960: ...936 ...
Страница 1194: ...1170 ...
Страница 1244: ...Undo Reverses the most recent change made by TRIM 1220 Chapter 21 ...
Страница 1310: ...1286 ...
Страница 1328: ...1304 ...
Страница 1354: ...Zoom Window Zooms to display an area specified by a rectangular window 1330 Chapter 26 ...
Страница 1490: ......