2012

Table Of Contents
>> Expression: R1=dist(end,end)/3
>> Select entity for END snap: Select an object with an endpoint
This example uses the values of variables P1 and R1:
Command: circle
Specify center point for circle or [3P/2P/Ttr (tangent tangent
radius)]: 'cal
>> Expression: P1+[0,1]
Specify radius of circle or [Diameter] <last>: 'cal
>> Expression: R1+0.5
See also:
Use the Command Line Calculator
Use System Variables in Calculations
You can use the getvar function to read the value of a system variable.
The syntax is
getvar(variable_name)
The following example uses getvar to obtain the point that is the center of
the view in the current viewport.
getvar(viewctr)
With this method, you can also access the user system variables, USERI1-5
and USERR1-5. For example, to retrieve the value stored in USERR2, enter the
following:
getvar(userr2)
See also:
Use the Command Line Calculator
Convert Units of Measurement
The cvunit function converts either a number or a point from one unit of
measurement to another. See the acad.unt file for a list of units that you can
convert. The syntax is
Commands | 167