Message 1 of 6

Not applicable
07-22-2019
12:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I have this lisp routine, that creates a line, then asks for objects to stretch to that line, and then deletes said line. Simple and elegant:
(defun c:q5() (command "line" pause pause "") (setq e1 (entlast)) (command "extend" e1 "_CP" "" pause pause "") (command "erase" e1 "" "") (princ) )
So the way it operates, one can only extend two objects before it ends the command and then comes up with "Unknown command "Q5". Press F1 for help." on the command line. How can I make the command continue asking for objects to extend indefinitely and also prevent that "Unknown command" message?
I added a screencast showing what I described. Of course, I pressed shift to trim instead of extend on the second object.
Thank you!
Solved! Go to Solution.