Jump to content
Sign in to follow this  

Unknown Command running SCRIPT

Recommended Posts


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")


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.

Share this post

Link to post
Share on other sites

If the lisp is loaded, try using (C:PNGH) in the script.


Share this post

Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...