CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 2872 

CAD tip CAD tip # 6103:

Question CAD 
 %  platform  category 
Q - question

Arithmetic expressions in AutoCAD dynamic input fields.

A - answer 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.
100% *  CAD 
22.4.2008    6565x  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 9630:Inventor trick - conditional parameters (without iLogic)
Tip 9359:Different types of rounding in Inventor parameters.
Tip 9248:Math functions in parameters of Inventor models.
Tip 8971:Linking together values of two dimensions in AutoCAD.
Tip 8281:String concatenation in AutoCAD fields and block attributes.

Back   All CAD Tips All CAD tips&tricks

Locked layers displayed faded. « | » How to delete a named page setup?

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 glossary   

Link your AutoCAD texts with Excel tables/sheets. Export. Change. Import.
Try DwgText 2015 More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.