Jump to content

Unknown Command running SCRIPT


tmelancon

Recommended Posts

Posted

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.

  • 8 months later...
Posted

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

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...