CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedHelp with script

 Post Reply Post Reply
Author
cadmom View Drop Down
Newbie
Newbie


Joined: 06.Jan.2011
Location: Canada
Using: AutoCAD2009 Autocad 2010
Status: Offline
Points: 4
Direct Link To This Post Topic: Help with script
    Posted: 06.Jan.2011 at 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
cadmom
Back to Top
HAWDesigner View Drop Down
Senior Member
Senior Member


Joined: 04.Aug.2008
Location: United States
Using: AutoCAD R14, AutoCAD 2009, AutoCAD 2010
Status: Offline
Points: 310
Direct Link To This Post Posted: 06.Jan.2011 at 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.
--
R. Williams
AutoCAD 2010 Certified Professional
<!-- If all else fails hit F1 -->
<<AutoCAD 2009
Back to Top
cadmom View Drop Down
Newbie
Newbie


Joined: 06.Jan.2011
Location: Canada
Using: AutoCAD2009 Autocad 2010
Status: Offline
Points: 4
Direct Link To This Post Posted: 06.Jan.2011 at 21:03
Sorry I should have mentioned that
Autocad 2009
Thank you
cadmom
Back to Top
HAWDesigner View Drop Down
Senior Member
Senior Member


Joined: 04.Aug.2008
Location: United States
Using: AutoCAD R14, AutoCAD 2009, AutoCAD 2010
Status: Offline
Points: 310
Direct Link To This Post Posted: 06.Jan.2011 at 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: -PLOT
Detailed plot configuration? [Yes/No] <No>: Yes
Enter a layout name or [?] <Model>:
Enter an output device name or [?] <HP Deskjet 9800>: EPSON Stylus Photo 1400 Series.pc3
Enter paper size or [?] <Letter (8 1/2 x 11 in)>:
Enter paper units [Inches/Millimeters] <Inches>: M
Enter drawing orientation [Portrait/Landscape] <Portrait>: L
Plot upside down? [Yes/No] <No>: N
Enter plot area [Display/Extents/Limits/View/Window] <Window>: E
Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <1=1>:
Enter plot offset (x,y) or Center: C
Plot with plot styles? [Yes/No] <Yes>: N
Enter plot style table name or [?] (enter . for none) <Grayscale.ctb>:
Plot with lineweights? [Yes/No] <Yes>: N
Enter shade plot setting [As displayed/Wireframe/Hidden/Visual styles/Rendered] <As displayed>:
Write the plot to a file [Yes/No] <N>: N
Save changes to page setup [Yes/No]? <N> N
Proceed with plot [Yes/No] <Y>:

The last line sends everything to the printer if you answer Yes or cancels if
you answer No.



Edited by HAWDesigner - 06.Jan.2011 at 21:11
--
R. Williams
AutoCAD 2010 Certified Professional
<!-- If all else fails hit F1 -->
<<AutoCAD 2009
Back to Top
cadmom View Drop Down
Newbie
Newbie


Joined: 06.Jan.2011
Location: Canada
Using: AutoCAD2009 Autocad 2010
Status: Offline
Points: 4
Direct Link To This Post Posted: 06.Jan.2011 at 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?
cadmom
Back to Top
HAWDesigner View Drop Down
Senior Member
Senior Member


Joined: 04.Aug.2008
Location: United States
Using: AutoCAD R14, AutoCAD 2009, AutoCAD 2010
Status: Offline
Points: 310
Direct Link To This Post Posted: 06.Jan.2011 at 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!!


Edited by HAWDesigner - 06.Jan.2011 at 22:27
--
R. Williams
AutoCAD 2010 Certified Professional
<!-- If all else fails hit F1 -->
<<AutoCAD 2009
Back to Top
cadmom View Drop Down
Newbie
Newbie


Joined: 06.Jan.2011
Location: Canada
Using: AutoCAD2009 Autocad 2010
Status: Offline
Points: 4
Direct Link To This Post Posted: 06.Jan.2011 at 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
cadmom
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,152 seconds.