saunambon654 发表于 2022-7-6 06:36:33

[AutoLisp] Can I call Plot com

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?

BlackBox 发表于 2022-7-6 06:43:28

Perhaps... Look into the NOMUTT System Variable.

saunambon654 发表于 2022-7-6 06:51:40

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:

SLW210 发表于 2022-7-6 07:02:47

Please use CODE TAGS and edit your posts.

alanjt 发表于 2022-7-6 07:06:58

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

saunambon654 发表于 2022-7-6 07:15:51

 
Sorry, already revised!

saunambon654 发表于 2022-7-6 07:22:22

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!

alanjt 发表于 2022-7-6 07:24:45

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

BlackBox 发表于 2022-7-6 07:33:08

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

saunambon654 发表于 2022-7-6 07:39:25

wow, it mean impossible for AutoLisp?
页: [1]
查看完整版本: [AutoLisp] Can I call Plot com