Autocad file naming

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

ncassidy22
User
Posts: 2
Joined: Fri May 31, 2013 2:48 pm

Autocad file naming

Post by ncassidy22 »

When I make a PDF in Autocad, it takes the drawing name and adds the paper space tab name to the end of it. Is there a way to limit it to the drawing name only?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Autocad file naming

Post by Stefan - PDF-XChange »

Hello ncassidy22,

Welcome to our forums.
You've posted in the Editor section but I believe that your problem is actually with our printing drivers.
The names we generate for the .pdf files depend on what the printing app sends to our drivers.
There's a special file in the drivers installation folder called titrules.js - if you have any JS knowledge you should be able to modify the ACad section of it so that your PDF names are in the format you want them.

Best,
Stefan
ncassidy22
User
Posts: 2
Joined: Fri May 31, 2013 2:48 pm

Re: Autocad file naming

Post by ncassidy22 »

Thanks, but I have no JS knowledge. Thought maybe there was an option or something I was missing in the settings.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Autocad file naming

Post by Stefan - PDF-XChange »

Hi ncassidy22,

I am afraid that this is what AutoCAD sends to our printer, and while there's a template - it doesn't seem to work in your case. I'd still advise you to take a look at the .js file, and other topics in this forum discussing e.g. "titrules" or "AutoCAD":
https://www.pdf-xchange.com/forum3/search.php
And you could then "experiment" with some of the suggestions in other topics. DO make sure to back up the original titrules.js before doing so however!

Best,
Stefan
SilverT
User
Posts: 3
Joined: Wed Aug 28, 2013 2:33 pm

Re: Autocad file naming

Post by SilverT »

I have a similar problem as ncassidy22.
I used to have Autocad 2000LT on an XP system and when I plotted drawings as PDFs, it named them as 'drawing name-model.pdf'.
I just got a new system with Windows 7 and Autocad 12.
Now it when I run the same plot routine, it names the file as "WOR.PDF".
I tried guess editing the titrules.js file but nothing I did changes except getting error when I tried to change the parameter docName = like_ACad(jobName).
Does anyone know what exactly to change in the titrules.js file to get PDF-XHANGE to save drawings with the filename?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Autocad file naming

Post by Stefan - PDF-XChange »

Hello SilverT,

Is this "WOR" part of the ACad file name? If it is - then the first thing to try would be to leave titrules.js as is, and change the macro in the printign drivers Preferences -> Save window from "%[DocName]" to "%[DocName].pdf".

Then if it doesn't help you will need to edit the actual code inside "function like_ACad(s)" though you will need some JS knowledge, and at least some technical specification for what ACad sends as document name when printing.

Regards,
Stefan
SilverT
User
Posts: 3
Joined: Wed Aug 28, 2013 2:33 pm

Re: Autocad file naming

Post by SilverT »

Thank you Stephan.
No the WOR is not part of the filename.
I am not familiar with what or where the
printign drivers Preferences -> Save window from "%[DocName]" to "%[DocName].pdf" is.
I am not familiar with JS (javascript?). I just tried editing it with notepad.
Don't know if this is a problem with Autocad or PDF-Xchange Tools.
Is someone at Tracker working on this?
Appreciate any help.
Regards
Terry
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Autocad file naming

Post by Stefan - PDF-XChange »

Hi Terry,

The printign drivers Preferences can be accessed from pretty much any "print window" which allows you to select a printer for your output. Check the attached screenshot for where "%[DocName].pdf" is.

I have a suspicion that the problem might be that this new version of AutoCad just sends the generic "WOR" as the print job name instead of sending the actual drawing file's name. In that case there's nothing we could do.

Regards,
Stefan
You do not have the required permissions to view the files attached to this post.
SilverT
User
Posts: 3
Joined: Wed Aug 28, 2013 2:33 pm

Re: Autocad file naming

Post by SilverT »

Thanks for trying.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Autocad file naming

Post by Stefan - PDF-XChange »

:)