tmelancon Posted February 12, 2020 Posted February 12, 2020 I have a command that I wrote to print all layouts in a drawing: (defun c:PNGH (/) (C:AREV);Command to update drawing initials based on computer username (foreach lay (layoutlist) ;lay = each item in the layoutlist (setvar 'CTab lay) (COMMAND "-plot" "n" "" "Horizontal-PNG-Acad (Color)" "PublishToWeb PNG.pc3" "" "n" "Y") ); end of foreach function (command "CTAB" "MODEL" "ZOOM" "ALL" "_QSAVE" "_CLOSE") (PRIN1)) The problem comes in when I try to use this command in a script it says: Unknown Command "PNGH". Press F1 for Help! Command: _quit My script for testing purposing just simple has -PNGH only and its not working. Can someone please help? Thanks so much in advance. Quote
framednlv Posted October 20, 2020 Posted October 20, 2020 If the lisp is loaded, try using (C:PNGH) in the script. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.