CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.092.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 6103:

Question

CAD 
 %  platform  category 
A
Using AutoLISP, you can enter values computed as mathematical expressions - at almost any prompt in AutoCAD, including the fields of dynamic input interface.

E.g. when specifying a line length (direction given by cursor rubberline) you can enter not only a number (distance) but also a LISP function (equation) enclosed in round brackets - e.g.:

(- 264 39)
(* 6 7)
(/ 22.0 7.0)
(+ 1 2 3 4 5)
Please note that the LISP notation is different from common arithmetics - first comes the function, then its operands.
ACAD
100% *CAD
22.4.2008    10354×  
applies to: AutoCAD ·

See also:
Tip 14459:How to replace missing functions min() and max() in Revit expressions?
Tip 14417:Quick calculator on an AutoCAD keyboard shortcut.
Tip 14363:Yesterday's, tomorrow's, past or future date in the DWG drawing.
Tip 14223:Arithmetic operations for renaming blocks, levels, layouts...
Tip 13583:Evaluate math expressions in AutoCAD DWG texts.


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist