There are several ways you can let AutoCAD do some quick arithmetic for you when you need a distance. Let’s say you’re drawing a line and you want to use direct distance entry to specify the length. What you know is that that line should be 4.372 plus 3.925. Of course, you could use a hand calculator or (gasp!) take out a pencil and paper and do the math.
Use an AutoLISP expression
Tony Dakin suggested the following method, which uses an AutoLISP expression. At the Specify next point or [Undo]: prompt, enter the following:
(+ 4.372 3.925)
- Start with a left parenthesis.
- Next comes the operator, such as. + – * or /.
- Add a space
- Add the first number
- Another space
- Add the second number
- Close the parentheses.
Use the CAL command
There’s another way: you can use the old CAL command. Here’s how:
At the Specify next point or [Undo]: prompt, enter ‘cal and press Enter.
Did you find this tip helpful?
Don't miss new tips!
Plus get a free Dynamic Blocks tutorial
Enter your name and email below
At the >>>> Expression: prompt, simply enter 4.372 + 3.925 and press Enter.
Enter math expressions in dialog box text boxes and the Properties palette
Did you know that you can enter expressions in dialog boxes and the Properties palette? Just type the expression, such as 4.372+3.925 and press Alt-Enter (don’t forget to press the Alt key!) You may have to press Enter to complete the change. For example, you can use this method to change the radius of a circle in the Properties palette.
For this to work, the CALCINPUT system variable must be set at 1, which is the default setting.
- Find midpoint between two points
- Pre-specify an angle