Display full version of the post: Help with script

cadmom
06.01.2011, 20:48
Does anyone know how to shut off the dialogue box that keeps coming up and stopping my script from running. I am trying to have a script plot a file to PDF and even though filedia is set to 0 when it comes to plot, it stops even if I put in a return to accept the file name.

plot
y
"Space Allocation Tabloid"


m
L
n
E
1:1
c
y

n
n
n
n
n
n
y
This is where a dialogue box appears and stalls the script file
Thank you for the input

HAWDesigner
06.01.2011, 21:00
Hi cadmom, welcome!!Which version of AutoCAD are you using?And have you upgraded versions since you created the Script?I'm using 2009 at the moment, and the questions I see are slightly different than what you have listed above.

cadmom
06.01.2011, 21:03
Sorry I should have mentioned that
Autocad 2009
Thank you

HAWDesigner
06.01.2011, 21:09

That's quite alright. I'm using 2009 also and this is what I'm presented with when I plot via commandline:Command: -PLOTDetailed plot configuration? [Yes/No] <No>: YesEnter a layout name or [?] <Model>:Enter an output device name or [?] <HP Deskjet 9800>: EPSON Stylus Photo 1400 Series.pc3Enter paper size or [?] <Letter (8 1/2 x 11 in)>:Enter paper units [Inches/Millimeters] <Inches>: MEnter drawing orientation [Portrait/Landscape] <Portrait>: LPlot upside down? [Yes/No] <No>: NEnter plot area [Display/Extents/Limits/View/Window] <Window>: EEnter plot scale (Plotted Inches=Drawing Units) or [Fit] <1=1>:Enter plot offset (x,y) or Center: CPlot with plot styles? [Yes/No] <Yes>: NEnter plot style table name or [?] (enter . for none) <Grayscale.ctb>:Plot with lineweights? [Yes/No] <Yes>: NEnter shade plot setting [As displayed/Wireframe/Hidden/Visual styles/Rendered] <As displayed>:Write the plot to a file [Yes/No] <N>: NSave changes to page setup [Yes/No]? <N> NProceed with plot [Yes/No] <Y>:The last line sends everything to the printer if you answer Yes or
cancels if
you answer No.HAWDesigner2011-01-06 21:11:05

cadmom
06.01.2011, 22:12
Have you tried plotting it to an Adobe PDF...Maybe it is an adobe problem but I dont know how to overcome it and force it to accept an "enter" in the dialogue box or how to force the dialogue box from coming up when I pick Adobe PDF. It works just fine if I choose a regular printer or plotter?

HAWDesigner
06.01.2011, 22:26

Yes, I did actually. Is the dialog box you're talking about, the box that asks you for the name of the PDF to save?If so, then it's merely a setting change.1. Go to your standard PLOT window, select the Adobe Printer, and then click on the Properties box to the right of it.2. About the middle of the Plotter Configuration Editor window, click on the "Custom Properties..." button.3. On the Adobe PDF Settings tab, change the value of the box to the right of "Adobe PDF Output Folder" to "My Documents\*.pdf" (You can change the location by clicking the Browse button next to it.)I'm guessing your original setting was "Prompt for Adobe PDF filename"... which is why you're getting the dialog in AutoCAD.4. Click OK, Click OK again, then click on the Option to "Save changes to the following file:" (Doing this will make your change permanent)Now, you should be able to cancel out of the plot window and try your script.Good Luck!!HAWDesigner2011-01-06 22:27:24

cadmom
06.01.2011, 22:48
Thank you very much. Greatly aprreciated, that makes it easier. I have had a really hard time trying to find documentation on writing scripts beyond the simple filedia -. commands. Maybe it is just an old forgotten art? Thank you for your time