2011

Table Of Contents
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)
Convert Units of Measurement
Quick Reference
See also:
Use the Command Prompt Calculator
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
cvunit(value, from_unit, to_unit)
The following example converts the value 1 from inches to centimeters:
cvunit(1,inch,cm)
Use Standard Numeric Functions
Quick Reference
See also:
Use the Command Prompt Calculator
158 | Chapter 4 C Commands