DWG to PDF

DWG to PDF

gobluejd
Advocate Advocate
5,318 Views
47 Replies
Message 1 of 48

DWG to PDF

gobluejd
Advocate
Advocate

This is what I need to do:

 

Replace the Qsave command with a custom command that every time I save a DWG I want it to create a PDF in the background, save it like the exportpdf command does (names it the same filename - no layout info and save over an existing file if there is one).  It will always be saved to the same directory. 

 

Right now I can use autopublish, but it adds the name of the layout tab.  I need it to be just the acutal file name, for example - test.dwg = test.pdf.

 

Can anyone help me?  

 

0 Likes
Accepted solutions (2)
5,319 Views
47 Replies
Replies (47)
Message 41 of 48

hmsilva
Mentor
Mentor
Try to copy/past the code in my previous post, in command line.

Henrique

EESignature

0 Likes
Message 42 of 48

gobluejd
Advocate
Advocate

I did and all I get is this: (then I tried just (command "export") and get a response as mentioned in my last post).

 

Screen Shot 2016-02-01 at 4.01.26 PM.png

0 Likes
Message 43 of 48

hmsilva
Mentor
Mentor

Was the .pdf file created?

 

Henrique

EESignature

0 Likes
Message 44 of 48

gobluejd
Advocate
Advocate

No.

 

Screen Shot 2016-02-01 at 4.07.50 PM.png

0 Likes
Message 45 of 48

hmsilva
Mentor
Mentor

Jeff,

as this is a 'mac' specific problem, try to post in AutoCAD for Mac General Discussion it will be easier to get some help on your code.

 

Henrique

 

 

EESignature

0 Likes
Message 46 of 48

gobluejd
Advocate
Advocate

Ok thanks!

0 Likes
Message 47 of 48

gobluejd
Advocate
Advocate

@hmsilva I am trying to add this to AutoCad 2020 and do not see that it is using the same file "acaddoc.lsp" that you modified for me some years ago.  Is there a way to still implement this?  I use use lsp 100x a day and can't live with out it!!!

0 Likes
Message 48 of 48

gobluejd
Advocate
Advocate
Accepted solution

@hmsilva ignore.  I just copied and it worked.  Sorry!