Display full version of the post: Simple Equations In Dynamic Input Field?

Kev_Boy
21.04.2008, 10:21
Hello all, this is my first post on these forums and I'm a fairly new user of AutoCAD.
I've been using the dynamic input field(s) often but have often felt the urge to input some simple mathicmatical equations (264-39 for example when extending a line) but the program won't take it.
It has worked on very rare occasions but I have no real clue how. Is there any way to ensure this works to make AutoCAD know it's supposed to handle the input as an equation instead of a sole value?
Thanks In Advance :)

Vladimir Michl
21.04.2008, 10:38
You can directly use integer division ("/"). For other expressions you can use the AutoLISP notation - e.g.:
(- 264 39)
(* 6 7)
(/ 22.0 7.0)
(+ 1 2 3 4 5)
 

Kev_Boy
21.04.2008, 13:12
It does appear to work, but I wonder why it will recognise a division but nothing else? Doing it with the AutoLISP notations is quite cumbersome :(

Vladimir Michl
21.04.2008, 15:32
The data entry doesn't support expressions - the division only comes from the fraction data notation.
But LISP expressions are quite easy - all must be in round brackets, first comes the function, then its operands.

Kev_Boy
22.04.2008, 11:39
Thanks, it's easier to understand written in English. Brackets -> function -> operands... cool! Kev_Boy2008-04-22 11:39:47