Plot Parameters Problem

alexisgacia
Advocate

Plot Parameters Problem

alexisgacia
Advocate
Advocate

Hi,

 

I'm having problem with the plot command. Sometimes the parameters are not the same. So it will give error during the process or it will stop in the middle of the batch process.

 

 

(COMMAND "_.PLOT"
"Y" ;; Detailed plot configuration? [Yes/No] <No>:
"" ;; Enter a layout name or [?] <LAYOUT>:
"PublishToWeb JPG.pc3" ;; Enter an output device name or [?] <DWG To PDF.pc3>:
"" ;; PublishToWeb JPG.pc3 Enter paper size or [?] <Sun Hi-Res (1600.00 x 1280.00 Pixels)>:
"Landscape" ;; Enter drawing orientation [Portrait/Landscape] <Landscape>:
"N" ;; Landscape Plot upside down? [Yes/No] <No>:
"EXTENTS" ;; Enter plot area [Display/Extents/Layout/View/Window] <Window>:
"FIT" ;; Enter plot scale (Plotted pixels=Drawing Units) or [Fit] <1=2>:
"0,0" ;; Enter plot offset (x,y) or [Center] <Center>:
"N" ;; Plot with plot styles? [Yes/No] <Yes>:
"." ;; Enter plot style table name or [?] (enter . for none) <PWA_COLOR_A1.ctb>:
"Y" ;; Plot with lineweights? [Yes/No] <Yes>:
"N" ;; Scale lineweights with plot scale? [Yes/No] <No>:
"N" ;; Plot paper space first? [Yes/No] <No>:
"N" ;; Hide paperspace objects? [Yes/No] <No>:
(strcat (getvar "dwgprefix") "Exp2013\\" (getvar "dwgname") "v1.jpg")
"N"
"Y"
)

 

 

 

It will give the following problem

 

_.PLOT Detailed plot configuration? [Yes/No] <No>: Y
Enter a layout name or [?] <Model>: 
Enter an output device name or [?] <None>: PublishToWeb JPG.pc3 
Enter paper size or [?] <Sun Hi-Res (1600.00 x 1280.00 Pixels)>: 
Enter drawing orientation [Portrait/Landscape] <Portrait>: 
Landscape Plot upside down? [Yes/No] <No>: N 
Enter plot area [Display/Extents/Limits/View/Window] <Display>: EXTENTS 
Enter plot scale (Plotted pixels=Drawing Units) or [Fit] <Fit>: FIT 
Enter plot offset (x,y) or [Center] <0.00,0.00>: C 
Plot with plot styles? [Yes/No] <Yes>: N 
Enter plot style table name or [?] (enter . for none) <>: . 
Plot with lineweights? [Yes/No] <Yes>: Y 
Enter shade pEnter a layout name or [?] <Model>: 
Enter an output device name or [?] <None>: 
PublishToWeb JPG.pc3 
Enter paper size or [?] <Sun Hi-Res (1600.00 x 1280.00 Pixels)>: 
Enter drawing orientation [Portrait/Landscape] <Portrait>: 
Landscape Plot upside down? [Yes/No] <No>: N 
Enter plot area [Display/Extents/Limits/View/Window] <Display>: EXTENTS 
Enter plot scale (Plotted pixels=Drawing Units) or [Fit] <Fit>: 
FIT Enter plot offset (x,y) or [Center] <0.00,0.00>: C 
Plot with plot styles? [Yes/No] <Yes>: N 
Enter plot style table name or [?] (enter . for none) <>: . 
Plot with lineweights? [Yes/No] <Yes>: Y 
Enter shade plot setting [As displayed/legacy Wireframe/legacy Hidden/Visual styles/Rendered] <As displayed>: N
Enter file name <C:\Users\AlexPalaboy\Desktop\Test\Sai\SmallFiles\Exp2013\test1 - Copy-Model.jpg>: N 
Save changes to page setup [Yes/No]? <N> N 
Proceed with plot [Yes/No] <Y>: C:\Users\p009790c\Desktop\Test\SEnter file name <C:\Users\AlexPalaboy\Desktop\Test\Sai\SmallFiles\Exp2013\test1 - Copy-Model.jpg>: N 
Save changes to page setup [Yes/No]? <N> N Proceed with plot [Yes/No] <Y>: C:\Users\AlexPalaboy\Desktop\Test\Sai\SmallFiles\Exp2013\Exp2013\test1 - Copy.dwgv1.jpg
Yes or No, please.
; error: Function cancelled
Proceed with plot [Yes/No] <Y>:

 

or 

alexisgacia_0-1642578847211.png

 

Is there any solution for this kind of problem?

 

Thanks in advance

0 Likes
Reply
Accepted solutions (2)
329 Views
3 Replies
Replies (3)

Sea-Haven
Mentor
Mentor

Just a guess what happens if file exists already that can cause a overwrite yes no question that will not occur if file does not exist, use findfile etc to check 1st does it exist then will need 2 defuns one with a extra Y.

0 Likes

andelo523
Enthusiast
Enthusiast
Accepted solution

Hi,

 

when I go through the plot process, I have other prompts. I guess it depends most likely which space you plot (model or paper space). Maybe you can separate that in your Batch.

 

Also, @Sea-Haven is right, the existing file could cause an overwrite question. But it's also not that much of a problem if you got a new clean folder. 😄

 

I have these prompts in model space:

_.PLOT
Detailed plot configuration? [Yes/No] <No>: 
Enter a layout name or [?] <Model>: 
Enter an output device name or [?] <PublishToWeb JPG.pc3>: 
Enter paper size or [?] <Sun Hi-Res (1600.00 x 1280.00 Pixels)>: 
Enter drawing orientation [Portrait/Landscape] <Landscape>: 
Landscape Plot upside down? [Yes/No] <No>: 
Enter plot area [Display/Extents/Limits/View/Window] <Extents>: 
Enter plot scale (Plotted pixels=Drawing Units) or [Fit] <Fit>:  
Enter plot offset (x,y) or [Center] <0.00,0.00>: 
Plot with plot styles? [Yes/No] <No>: 
Enter plot style table name or [?] (enter . for none) <>: 
Plot with lineweights? [Yes/No] <Yes>: 

Enter shade plot setting [As displayed/legacy Wireframe/legacy Hidden/Visual styles/Rendered] <As displayed>:

Enter file name <>: 

Save changes to page setup [Yes/No]? <N> 
Proceed with plot [Yes/No] <Y>: 

 

And this code works in model space:

(COMMAND "_.PLOT"
 "Y" ;; Detailed plot configuration? [Yes/No] <No>: 
 "" ;; Enter a layout name or [?] <LAYOUT>: 
 "PublishToWeb JPG.pc3" ;; Enter an output device name or [?] <DWG To PDF.pc3>: 
 "" ;; PublishToWeb JPG.pc3 Enter paper size or [?] <Sun Hi-Res (1600.00 x 1280.00 Pixels)>: 
 "Landscape" ;; Enter drawing orientation [Portrait/Landscape] <Landscape>: 
 "N" ;; Landscape Plot upside down? [Yes/No] <No>: 
 "EXTENTS" ;; Enter plot area [Display/Extents/Layout/View/Window] <Window>: 
 "FIT" ;; Enter plot scale (Plotted pixels=Drawing Units) or [Fit] <1=2>: 
 "0,0" ;; Enter plot offset (x,y) or [Center] <Center>: 
 "N" ;; Plot with plot styles? [Yes/No] <Yes>: 
 "." ;; Enter plot style table name or [?] (enter . for none) <PWA_COLOR_A1.ctb>: 
 "Y" ;; Plot with lineweights? [Yes/No] <Yes>:
 "" ;; Enter shade plot setting [As displayed/legacy Wireframe/legacy Hidden/Visual styles/Rendered] <As displayed>: 
 (strcat (getvar "dwgprefix") "Exp2013\\" (getvar "dwgname") "v1.jpg") ;; Enter file name
 "N" ;; Save changes to page setup [Yes/No]? <N> 
 "Y" ;; Proceed with plot [Yes/No] <Y>:
)
0 Likes

alexisgacia
Advocate
Advocate
Accepted solution

I set always to Layout before I plot but no avail.

 

What I did is I add delay before I start to plot.

(setvar 'CTab (car (layoutlist))) ; Focus to first layout

(repeat 3000 (setq a "z")) 
(-Plot...)

(repeat 1000 (setq a "z"))

 

I don't know if this is right, but it works now. 33 files and counting, still no error. Still checking.

 

0 Likes