Does anybody know how to make it so that prompts in our AutoLisp functions can accept lisp math functions?
Example:
If you start the line command, start the line from anywhere, move the mouse to the right a little and then type "(+ 10 15)" into the command prompt, it will create a 25 unit long line in the direction you moved the mouse in.
I have a few functions that I'd like to be able to use this capability, but when I try I get a "Can't reenter LISP." error.
Command:LINE Specify first point:Specify next point or [undo]:Specify next point or [undo]: [b]'cal[/b] >>>> Expression: [b]10+15[/b]Resuming LINE command.Specify next point or [undo]: 25Specify next point or [Close/Undo]:Command:
You can also use CAL in lisp.
Next function is LINE command redefined. When you are prompted to pick next point, you can type a valid cal expression.