antistar Posted November 12, 2010 Share Posted November 12, 2010 I wrote this simple routine to print quickly with parameterized values and works perfectly with "LAYOUTS" but does not run with MODEL SPACE. Can anyone help me? (defun c:_PLT (/ ) (setq layoutname (getvar "CTAB")) (command "-plot" "yes" layoutname "\\\\servername\\printername" ; PRINTER NAME "ISO A2 " ; PAPER SIZE "m" ; PAPER UNITS "Landscape"; drawing orientation "no" ;PLOT UPSIDE DOWN "Extents" ; PLOT AREA "fit" ; PLOT SCALE "0.00,0.00" "yes" ;PLOT WITH PLOTSYTLES "_acad.ctb" "y" ;PLOT WITH LINEWEIGHTS "n" ;SCALE LINEWEIGHTS WITH PLOT SCALE "y" ;PLOT PAPER SPACE LAST "n" ;REMOVE HIDDEN LINES "n" ;WRITE THE PLOT TO A FILE "y" ;SAVE CHANGES "y"); ; ) (princ) ) Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 12, 2010 Share Posted November 12, 2010 What error occurs? Could it be the order of the prompts are different for Model Space? Where does the code fall down? Quote Link to comment Share on other sites More sharing options...
antistar Posted November 12, 2010 Author Share Posted November 12, 2010 What error occurs? Could it be the order of the prompts are different for Model Space? Where does the code fall down? Display this error: Command: -plot Detailed plot configuration? [Yes/No] : yes Enter a layout name or [?] : Model Enter an output device name or [?] : DesignJet 750C Plus C4709B.pc3 Enter paper size or [?] : ISO A2 Enter paper units [inches/Millimeters] : m Enter drawing orientation [Portrait/Landscape] : Landscape Plot upside down? [Yes/No] : no Enter plot area [Display/Extents/Limits/View/Window] : Extents Enter plot scale (Plotted Millimeters=Drawing Units) or [Fit] : fit Enter plot offset (x,y) or : 0.00,0.00 Plot with plot styles? [Yes/No] : yes Enter plot style table name or [?] (enter . for none) <_acad.ctb>: _acad.ctb Plot with lineweights? [Yes/No] : y Remove hidden lines? [Yes/No] : n Write the plot to a file [Yes/No] : y Enter file name : n Save changes to model tab [Yes/No]? n Proceed with plot [Yes/No] : y Effective plotting area: 409.96 wide by 576.67 high Plotting viewport 2. Command: y Unknown command "Y". Press F1 for help. Command: Curiously in "LAYOUT" mode works perfectly. Quote Link to comment Share on other sites More sharing options...
JohnM Posted November 12, 2010 Share Posted November 12, 2010 Enter file name : n Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.