- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
At my office, we use a plotting lisp to set up different sheet sizes. The lisp is working on most computers, but has decided to not work on my computer (AutoCad 2024). Here's the lisp just in case anyone wants to figure out if there's something wrong.
Keep in mind, the lisp has worked just fine for me for nearly 2 years, but one day with no apparent changes made to ACAD or the lisp, has stopped working.
(defun c:1117 (/ lname)
(setvar "cmdecho" 1)
(setq lname (getvar "ctab"))
(command "-plot" "y" lname "PRINTERNAME" "Ledger" "i" "l" "n" "e" "1=2.5" "c" "y" "PLOTSTYLE" "y" "y" "n" "n" "n" "y" "n")
(princ)
);defun c:
Just replace PRINTERNAME and PLOTSTYLE with actual values.
ACAD gave me the error "unkown command "Y"" and so on for everything after the plot table. I've set cmdecho to 1 in order to see where the lisp is failing, and after the PLOTSTYLE, it no longer asks for the y/n questions.
If I manually type in each of the commands from the lisp, it asks each appropriate question, making the lisp work in theory, but the moment the lisp tries to run it, no more questions after asking for the plot style.
Of course, there may be other factors being played that I am unaware of, but any help would be greatly appreciated.
Solved! Go to Solution.