<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DWG to PDF in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960387#M135713</link>
    <description>&lt;P&gt;This is what I need to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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). &amp;nbsp;It will always be saved to the same directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I can use autopublish, but it adds the name of the layout tab. &amp;nbsp;I need it to be just the acutal file name, for example - test.dwg = test.pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2015 14:10:36 GMT</pubDate>
    <dc:creator>gobluejd</dc:creator>
    <dc:date>2015-12-21T14:10:36Z</dc:date>
    <item>
      <title>DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960387#M135713</link>
      <description>&lt;P&gt;This is what I need to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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). &amp;nbsp;It will always be saved to the same directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I can use autopublish, but it adds the name of the layout tab. &amp;nbsp;I need it to be just the acutal file name, for example - test.dwg = test.pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 14:10:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960387#M135713</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2015-12-21T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960574#M135714</link>
      <description>Qsave command too important. Look for a decent LISP routine and set the command to something small like qsave.</description>
      <pubDate>Mon, 21 Dec 2015 16:00:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960574#M135714</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2015-12-21T16:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960578#M135715</link>
      <description>I've looked and do not see anything like what I am asking. I can certainly edit a LISP if it similar to what I need. At this point I do not see your response as a solution. I am needing help writing/finding one similar.</description>
      <pubDate>Mon, 21 Dec 2015 16:03:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960578#M135715</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2015-12-21T16:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960596#M135716</link>
      <description>Well then, I'll just have to help you find one &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Mon, 21 Dec 2015 16:09:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960596#M135716</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2015-12-21T16:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960605#M135717</link>
      <description>Just found something interesting. Read this:&lt;BR /&gt;&lt;A href="http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-automate-dwg-to-pdf/td-p/5717549" target="_blank"&gt;http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-automate-dwg-to-pdf/td-p/5717549&lt;/A&gt;</description>
      <pubDate>Mon, 21 Dec 2015 16:13:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960605#M135717</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2015-12-21T16:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960724#M135718</link>
      <description>&lt;P&gt;Thanks! &amp;nbsp;I saw that as well, but not sure how it is working. &amp;nbsp;I contacted the guy who created. &amp;nbsp;I will post if he comes up with a solution.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 17:02:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960724#M135718</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2015-12-21T17:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960825#M135719</link>
      <description>Ok, ya... I was going to tell you to private message that high rank.</description>
      <pubDate>Mon, 21 Dec 2015 18:09:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5960825#M135719</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2015-12-21T18:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5961293#M135720</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;quick and dirty&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;should&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;do the trick, a&lt;/SPAN&gt;dd the code in acaddoc.lsp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(command "_.undefine" "qsave")
(defun c:qsave (/ *error* echo file mutt)

   (defun *error* (msg)
      (if mutt
         (setvar 'nomutt mutt)
      )
      (if echo
         (setvar 'cmdecho echo)
      )
      (cond ((not msg))
            ((member msg '("Function cancelled" "quit / exit abort")))
            ((princ (strcat "\n** Error: " msg " ** ")))
      )
      (princ)
   )

   (setq mutt (getvar 'nomutt)
         echo (getvar 'cmdecho))
   (setvar 'cmdecho 0)
   (setvar 'nomutt 1)
   (setq file (strcat (getvar 'dwgprefix) (vl-filename-base (getvar 'dwgname)) ".pdf"))
   (if (= (getvar 'ctab) "Model")
      (command "_.-export" "_P" "_D" "_N" file)
      (command "_.-export" "_P" "_C" "_N" file)
   )
   (command "_.qsave")
   (*error* nil)
   (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a user enter .qsave (with&amp;nbsp;a period), will call the native 'qsave' command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 22:45:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5961293#M135720</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2015-12-21T22:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5962007#M135721</link>
      <description>&lt;P&gt;Thanks! &amp;nbsp;I will try this when I get into office!!!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:03:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5962007#M135721</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2015-12-22T15:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5964044#M135722</link>
      <description>My PC needed a doctor &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I will confirm if this works after holidays!!!</description>
      <pubDate>Thu, 24 Dec 2015 00:25:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5964044#M135722</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2015-12-24T00:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5971786#M135723</link>
      <description>I have added this and do not see anything happen after the qsave. I am not sure where I see in the code it is saving to. I have searched for *.pdf via c: and do not see a PDF has been created. Can you advise? Also I just got back from vacation which is why I am not just looking at this.</description>
      <pubDate>Mon, 04 Jan 2016 14:25:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5971786#M135723</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2016-01-04T14:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972052#M135724</link>
      <description>&lt;P&gt;Also I notice when I save (to test) and then do a regular "_exporteplotformat" it says the attached and Adobe is not open.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 16:15:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972052#M135724</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2016-01-04T16:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972433#M135725</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/475927"&gt;@gobluejd&lt;/a&gt; wrote:&lt;BR /&gt;I have added this and do not see anything happen after the qsave. I am not sure where I see in the code it is saving to. I have searched for *.pdf via c: and do not see a PDF has been created. Can you advise? Also I just got back from vacation which is why I am not just looking at this.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi Jeff,&lt;/P&gt;
&lt;P&gt;the code will save the '.pdf' file in the same &lt;SPAN class="hps"&gt;directory as the current '.dwg' file and with the same name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;I did test the code (in an old AutoCAD) &lt;SPAN class="hps alt-edited"&gt;without&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;issues...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps alt-edited"&gt;Open a test .dwg and If you copy/paste this code lines in command line&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(if (setq f (findfile "acaddoc.lsp"))
   (startapp "explorer" f)
   (prompt "\nFile not found!!!")
)&lt;/PRE&gt;
&lt;P&gt;do you see the added code in acaddoc.lsp file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps alt-edited"&gt;Henrique&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 19:11:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972433#M135725</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-01-04T19:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972450#M135726</link>
      <description>&lt;P&gt;I created a test.dwg, pasted the code you added and it does not show up in the acaddoc.lsp (I attached).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not creating a PDF in same directory. &amp;nbsp;I can tell you that if I do a qsave, then try and use the exportPDF command, it locks the PDF file and says it is in use as previously mentioned.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 19:22:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972450#M135726</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2016-01-04T19:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972492#M135727</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/475927"&gt;@gobluejd&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I created a test.dwg, pasted the code you added and &lt;STRONG&gt;it does not show up in the acaddoc.lsp&lt;/STRONG&gt; (I attached).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not creating a PDF in same directory. &amp;nbsp;I can tell you that if I do a qsave, then try and use the exportPDF command, it locks the PDF file and says it is in use as previously mentioned.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Jeff,&lt;/P&gt;
&lt;P&gt;the code I have posted, will open the &lt;SPAN class="hps"&gt;first&lt;/SPAN&gt; acaddoc.lsp file &lt;SPAN class="hps alt-edited"&gt;that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;autocad&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;finds.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;It should open the acaddoc.lsp file with the &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;(command "_.undefine" "qsave")&lt;BR /&gt;(defun c:qsave (/ ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(findfile "acaddoc.lsp")&lt;/PRE&gt;
&lt;P&gt;the returned path is from the modified acaddoc.lsp?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;If not, you'll have to edit the &lt;SPAN class="hps"&gt;found&lt;/SPAN&gt; acaddoc and add the &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;(command "_.undefine" "qsave")&lt;BR /&gt;(defun c:qsave (/ ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class="hps"&gt;'then try and use the exportPDF command, it locks the PDF file and says it is in use as previously mentioned.'&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Jeff, I have no clue &lt;SPAN class="hps alt-edited"&gt;why it says the file is in use... in my tests, I can edit/delete the '.pdf' files created by the code...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps alt-edited"&gt;Which AutoCAD version are you using?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps alt-edited"&gt;Henrique&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 19:39:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972492#M135727</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-01-04T19:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972538#M135728</link>
      <description>&lt;P&gt;I think I may see the issue. &amp;nbsp;I have Autocad and Mechanical Autocad and I may have edited the wrong one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when AutoCad is open, and I paste:&lt;/P&gt;&lt;PRE&gt;(findfile "acaddoc.lsp")&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It comes up nil.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only copy I can see is in AcadM, which is for the Mechanical (which I never use). I have the ultimate subscription.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I wonder why I can not see it?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:03:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972538#M135728</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2016-01-04T20:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972557#M135729</link>
      <description>&lt;P&gt;Ok - Got it to work. &amp;nbsp;I did not have the file for AutoCad 2016. &amp;nbsp;I took the one in the Mechanical Directory, saveas as to my autocad 2016, deleted all in it and added your code and it works!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now is possible to have it publish to another drive&amp;nbsp;or folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;C:\Users\Jeff.Dickerson\Documents\Drawings\PDF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:19:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972557#M135729</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2016-01-04T20:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972564#M135730</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/475927"&gt;@gobluejd&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Ok - Got it to work. &amp;nbsp;I did not have the file for AutoCad 2016. &amp;nbsp;I took the one in the Mechanical Directory, saveas as to my autocad 2016, deleted all in it and added your code and it works!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now is possible to have it publish to another drive&amp;nbsp;or folder?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like&lt;/P&gt;
&lt;P&gt;C:\Users\Jeff.Dickerson\Documents\Drawings\PDF&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes,&lt;/P&gt;
&lt;P&gt;change&lt;/P&gt;
&lt;PRE&gt;(setq file (strcat (getvar 'dwgprefix) (vl-filename-base (getvar 'dwgname)) ".pdf"))&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(setq file (strcat "C:\\Users\\Jeff.Dickerson\\Documents\\Drawings\\PDF\\" (vl-filename-base (getvar 'dwgname)) ".pdf"))
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:25:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972564#M135730</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-01-04T20:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972568#M135731</link>
      <description>Thanks so much!!! Is it using a certain PC3 file? It is not correctly printing it. It only PDF's a portion of it. I am assuming I just have to set the printing preferences for the correct PC3 file it is using?</description>
      <pubDate>Mon, 04 Jan 2016 20:27:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972568#M135731</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2016-01-04T20:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: DWG to PDF</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972581#M135732</link>
      <description>&lt;P&gt;I got it, just had to pick correct one. &amp;nbsp;Thanks so much.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:36:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dwg-to-pdf/m-p/5972581#M135732</guid>
      <dc:creator>gobluejd</dc:creator>
      <dc:date>2016-01-04T20:36:23Z</dc:date>
    </item>
  </channel>
</rss>

