Jump to content

Cannot plot model space


antistar

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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