PDA

View Full Version : 'Auto' file names when converting to pdf



U.Rackharrow
2010-01-07, 12:43 PM
Hi,

When using dwg to pdf.pc3 (converting a drawing to pdf), the file name automatically picks up the file name (which I want) and the layout name which I almost always don't want. Can this default behaviour be changed?

irneb
2010-01-07, 03:28 PM
Not that I know of, maybe make a wish?

gandocadguy
2010-01-07, 03:52 PM
could maybe be done with a lisp and then use that to plot. I have one that uses an Adobe PDF.pc3

Like this:



(setq DwgNamed (substr (Getvar "DWGNAME") 1 (- (strlen (getvar "DWGNAME")) 4)))


that'll get you a variable with just the file name.

irneb
2010-01-07, 04:32 PM
Yeah well in that case you'll have to write a SCR to do multiple Tabs and / or DWG's. It can't be done through the Publish command ... unless maybe someone knows how to do this using .NET?

And doing it for one layout only, would not bring up the plot dialog - seeing as you'll need the command line version of plot to plot it to a file called DwgNamed. But maybe that's fine with the OP?

gandocadguy
2010-01-07, 04:35 PM
It does only work with the command line plot. I have the rest of the code if the OP wants it. It's not fancy just a bunch of command sends. Could have also been a script but was written to be part of something else.

I assumed one layout per file or it would be hard to name all the PDF's with the file name.

U.Rackharrow
2010-01-11, 12:14 PM
Thanks for your comments.

I thought/hoped it would be a system variable to change - ho ho ho! I can see how to use lisp to get the dwgname and strip off the .dwg but then the plot (no apologies for the pun) thickens. If I create a button and use the command line plot then I have to create 5 buttons for the 5 paper sizes... I think I'll put this one in the 'pending' tray for the time being!

gandocadguy
2010-01-11, 01:16 PM
You could add an additional variable to pause and ask you for a paper size. and set your sizes to numbers 1-5. Click your button, input your sheets size number and away you go.

NerdlingOne
2010-01-11, 09:44 PM
I would probably use good ol' Bulk Rename Utility after the fact.

http://www.bulkrenameutility.co.uk/Main_Intro.php