Greetings,
Using a following lisp routine:
;distance nearest to perpendicular
(defun C:qd:f ()
(prompt "\nDistance nearest to perpendicular")
(command "dist" "nea" pause "per")
(princ)
);
I have got an error message:
Command: qd
Initializing...distance
DISTANCE = 0.0000 (read only)
Command: _nea Unknown command "NEA". Press F1 for help.
The routine worked well within Autocad 2011. I will be grateful for any helpful clue to resolve the problem. I find the command very usefull for my work.
Thank you in advance.
PS
A lisp folder is marked as a trustful path.
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
Hi GThib,
from the error message,
"Command: qd
Initializing...distance
DISTANCE = 0.0000 (read only)
Command: _nea Unknown command "NEA". Press F1 for help."
the "_dist" is calling the System Variable "DISTANCE", not the command "DIST", "probably" is redefined in some customization.
I don't have AutoCAD 2015 this old laptop, try the following code and see if it makes any difference
(defun C:qd:f () (prompt "\nDistance nearest to perpendicular") (command "_.dist" "_NEA" pause "_PER") (princ) )
HTH
Henrique