Jump to content

[AutoLisp] Can I call Plot command without any echo?


Recommended Posts

Posted (edited)

This is my code:

(defun sub-plot (p1 p2)
 (setvar "cmdecho" 0)
 (command ".-plot" "y" "" "" "" "m" "" "" "" p1 p2 "" "" "" "" "" "" "" "y" "y")
 (princ)
 )

 

I called it from command line:

Command: (sub-plot (getpoint)(getpoint))

Effective plotting area: 411.10 wide by 290.70 high

 

Plotting viewport 2.

 

Command:

 

Can I turn off blue text?

Edited by saunambon654
Posted

Perhaps... Look into the NOMUTT System Variable.

Posted (edited)

Thanks you very much, but it does not work!

(defun sub-plot (p1 p2)
(setvar "cmdecho" 0)
(setvar "NOMUTT" 1)
(command ".-plot" "y" "" "" "" "m" "" "" "" p1 p2 "" "" "" "" "" "" "" "y" "y")
(setvar "NOMUTT" 0)
(princ)
)

 

 

Command: (sub-plot (getpoint)(getpoint))

Effective plotting area: 411.10 wide by 290.70 high

 

Plotting viewport 2.

 

Command:

Edited by saunambon654
Posted

There are just some prompts you can't suppress. Is it really that much of an issue?

Posted
Please use CODE TAGS and edit your posts.

 

Sorry, already revised! :)

Posted

Actually I am writing a program can be used printing multiple pages automatically. If I call it 10 times (10 pages), the command line is not so nice! :)

Posted

AFAIK, it cannot be suppressed. It even display with the vla plot command.

Posted

The only way I know of suppressing the normal plot feedback at command line, is to either use Autopublish, or step up into .NET API... The latter can be done either in the active session as Kean demonstrates here, or via Core Console (AcCoreMgd.dll) for 2013+ as Greg demonstrates here.

 

HTH

Posted

wow, it mean impossible for AutoLisp?

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...