[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? Perhaps... Look into the NOMUTT System Variable. 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: Please use CODE TAGS and edit your posts. There are just some prompts you can't suppress. Is it really that much of an issue?
Sorry, already revised! 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! AFAIK, it cannot be suppressed. It even display with the vla plot command. 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 wow, it mean impossible for AutoLisp?
页:
[1]