How to input mathematical equations?

How to input mathematical equations?

Leonardo_Czuy
Advocate Advocate
811 Views
3 Replies
Message 1 of 4

How to input mathematical equations?

Leonardo_Czuy
Advocate
Advocate

Is there a way to input mathematical equations directly into AutoCAD? For example, if I want to input 9*3 = 27, so I don't have to calculate it manually.

Leonardo_Czuy_0-1707917279972.png

 

0 Likes
Accepted solutions (1)
812 Views
3 Replies
Replies (3)
Message 2 of 4

VincentSheehan
Advisor
Advisor

You can use a Field with a Formula.

 

Field.png

Vincent Sheehan

Sr. Civil Designer
Poly In 3D Blog

0 Likes
Message 3 of 4

cadffm
Consultant
Consultant
Accepted solution

Hi,

 

you can to this by using CAL or simplier, by using LISP.

 

Read about CAL in your help and about LISP too [F1]

 

Lisp,

Note1 the prefix-notation! (* 9 3) (+ 1 2 3 4) (/ 27 9)

Note2 if your devide statement uses integers only, the result will also return just the integer part! (/ 1 3)=0,  (/ 1.0 3)=0.333, (/ 1 3.0)=0.333, (/ 1.0 3.0)= 0.333

Sebastian

Message 4 of 4

rkmcswain
Mentor
Mentor

CAL is so powerful. Rarely run into anyone who even knows about it.

R.K. McSwain     | CADpanacea | on twitter