The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 General Discussion
 Batch plotting to PDF
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gdury
New Member

United Kingdom
19 Posts

Posted - February 19 2008 :  10:07:14 AM  Show Profile  Visit gdury's Homepage  Reply with Quote
Bill,Forum Members

Hope you can help we with a script problem to batch plot A0/A1 drawings to PDF.
I have created the following script, almost similar to a reply message from Geester - 15th May 2005: http://www.74mph.com/forum/topic.asp?TOPIC_ID=266&SearchTerms=PDF

My main problem is not being able to save the PDF file to the location on the network. The Adobe SAVEAS dialogue box keeps popping up,you then have to click on the Save button for it to proceed. I have highlighted the script in BOLD for the desired location.

;BEGIN SCRIPT
;Command: -plot
-PLOT
;Detailed plot configuration? [Yes/No] <No>: y
Y
;Enter a layout name or <Layout1>:

;Enter an output device name or <XES Synergix 8825 (2 Roll).pc3>:
Adobe PDF A1.pc3
;Enter paper size or <PostScript Custom Page Size>:
PostScript Custom Page Size
;Enter paper units [Inches/Millimeters] <Inches>:
M
;Enter drawing orientation [Portrait/Landscape] <Landscape>:
Landscape
;Plot upside down? [Yes/No] <No>:
N
;Enter plot area [Display/Extents/Layout/View/Window] <Extents>:
E
;Enter plot scale (Plotted Millimeters=Drawing Units) or [Fit] <1:1>:
1:1
;Enter plot offset (x,y) or [Center] <0.00,0.00>:
0.00,0.00
;Plot with plot styles? [Yes/No] <Yes>:
Y
;Enter plot style table name or (enter . for none) <DESCO.ctb>:
Desco.ctb
;Plot with lineweights? [Yes/No] <Yes>:
y
;Scale lineweights with plot scale? [Yes/No] <No>:
N
;Plot paper space first? [Yes/No] <No>:
N
;Hide paperspace objects? [Yes/No] <No>:
N
;Write the plot to a file [Yes/No] <N>:
N
;Save changes to page setup [Yes/No]? <N>
N
;Enter filename <current name.pdf>
"G:\0538\Xbound\Elec\$FILENAME$.pdf"

;Proceed with plot [Yes/No] <Y>:
Y
;END SCRIPT


I have left the 'LAYOUT NAME' blank because it will automatically 'print' what's in paperspace regardless of the layout name. We normally have the cad file name.

Any help from the members would be appreciated

Regards

Graham Dury - G.L.Draughting Ltd, Contract Draughting Services

Admin
Administrator



652 Posts

Posted - February 19 2008 :  10:56:00 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hi Gdury,

1) Try
FILEDIA 0 in your SETTINGS->PREUSERSCRIPT
FILEDIA 1 in yoru SETTINGS->POSTUSERSCRIPT

2) I've found the other determining factor as to whether the "fileselector" pops-up, is the actual PDF driver you are using. Each of the pdf drivers/products/versions has different ways of dealing with the fileselector.

After a bit of quick testing.
http://www.pdfforge.org/ seems to generate PDF's ok with word/excel, or anything else without the fileselector but with AutoCAD a bit of an issue... seems to output PLT files on... I'm working on it... must just be a setting...

I'm encapsulating the filename in quotes too...
;Write the plot to a file [Yes/No] <N>: Y
Y
"$FILEPATH$TEST-$FILENAME$.pdf"
;PROCEED
y
Y
;END SCRIPT


I hope this gets you one step closer...

Regards,
Bill

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

Simon R Halmshaw
New Member



United Kingdom
9 Posts

Posted - March 29 2008 :  12:15:50 PM  Show Profile  Visit Simon R Halmshaw's Homepage  Reply with Quote
Graham - What PDF conversion software are you using?, I just tried this and it works for me. A couple of things, first I am not trying to save to a network drive only an external drive, second, I am running Acrobat 7 Professional as I use this for a lot more than simple conversions. One thing that I found was that I can stack only up to 50 drawings, more than that and my laptop starts to cook as it tries to process the drawings.
If you run Acrobat professional you can set the path for the drawings in the print set up dialog in Acrobat as well as de-select the "Show PDF" option and the "Confirm file name" option.

Maybe some use to you, not sure
Thanks
Simon
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.27 seconds. Snitz Forums 2000