PDA

View Full Version : PDF filename



s_ams
28th Jan 2007, 04:26 pm
hello all,

I created this plotscript for a multitude of drawing files to be plotted as PDF's, which works great without any problems, except for the actual filename of the exported PDF-file.

I set up a plotter to export as PDF, and since I'm working with a script, I opted not to have it ask me for a filename. Therefore, it should assume the actual filename of the dwg to be the filename for the PDF.

"drawing1.dwg" should become "drawing1.pdf"

The problem is that this works great on some computers, but doesn't on others. It is actually adding the layout name to the filename as follows
"drawing1.dwg" becomes "drawing1 layout1.pdf" and that just becomes too lenghty.I've tried to figure this out, by going through all the options and plotter related settings, but I just can't figure it out. I have tested this with ADT 2006, and ACAD 2004; both create the same problem.



Does anybody have any suggestions? Thanks

mdbdesign
28th Jan 2007, 07:46 pm
I think because drawing name is only one and every layout got different name. You can't write file with same file name in same location so that why you got "drawing1layout 1.pdf"
Rename your layout to desired name and it will work for you

s_ams
28th Jan 2007, 08:24 pm
unfortunately, that's not the cause of it all. I appreciate the feedback though.
Perhaps I should get into more detail.

One of the scripts I use opens up a single file with only 1 layout in it, plots that layout, and closes the file before continuing with the next drawing. So all of the exported pdf filenames are unique, since I'm dealing with unique CAD files.

Another script opens up a unique drawing and plots from Model with a plot window, closes, and goes to the next file.

This is how I figure it's probably a setting: drawings with unique layout names, drawings with all the same layout names, or drawings that plot from Model show the same result:

it either adds "Model (1)" to the pdf filename, or it adds the layout name to the pdf filename.

mdbdesign
28th Jan 2007, 11:41 pm
What you can do: put user input stop on your script, type file name and you get what you want. I don't think you can convince pdf to change file name by script( or i am wrong???)

s_ams
28th Jan 2007, 11:57 pm
well, I don't have to give in a name, that's the key to having this script work smoothly.

I just need to know why one computer doesn't add the layout name (which is what I want) while another does add the layout name.

It just might be an Adobe setting, but it doesn't seem to be.

mdbdesign
29th Jan 2007, 12:12 am
I got Adobe Acrobat Pro V7 (just checked)
Printed two layout I rename and show main dwg name and layout name and (1) mind number of copy? Over that I don't know.
Sorry I can't help you.

dbroada
29th Jan 2007, 09:41 am
It was this problem with the naming that pushed us to buying a converter ratehr than printing PDFs from AutoCAD - that and the fact that we can leave the conversion to non-AutoCAD users. We use AnyDwgtoPdf converter. The only problem I have with it is that it prints "non-print" layers.

rkmcswain
29th Jan 2007, 02:52 pm
PDF naming is a function of the PDF driver/software - not AutoCAD.

We use Acroplot (http://www.acroplot.com) to handle this.