<?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 Re: Publish to PDF default location in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13024815#M68357</link>
    <description>&lt;P&gt;Hey John,&lt;/P&gt;&lt;P&gt;I've been working though the very thing. I think reactors are way too much over kill. I simply have a lisp that loads and runs when ever a drawing is loaded. I find the drawing path with (getvar "dwgprefix") and have a function that derives the root project path from that, then adds what ever folder(s) to set a publish output sub folder. I then use the following snippet to set the paths for the project specific sub folders in the registry.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;(setq key (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (getvar "cprofile") "\\Dialogs\\"))(ARegPut_func (strcat key "AcPublishDlg") "Location" "Path")&lt;BR /&gt;(ARegPut_func (strcat key "AcPublishDlg\\MRU Local") "File0" "Path")&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 00:57:59 GMT</pubDate>
    <dc:creator>pdmasonnz</dc:creator>
    <dc:date>2024-09-17T00:57:59Z</dc:date>
    <item>
      <title>Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9830983#M68348</link>
      <description>&lt;P&gt;I'm sure I could figure this out myself, but it's more fun sharing these things with you hip people...&lt;/P&gt;
&lt;P&gt;It has been _issing me off that I have to keep navigating to the project folder on the server every time I publish a sheet set to PDF.&amp;nbsp; So the answer is to slam dunk my profile every time I open a DWG to set the default publish path in the registry.&lt;/P&gt;
&lt;P&gt;Anyone care to take a stab at it?&amp;nbsp; You are all faster than I am, especially since I lost eight of my fingers trying to sharpen my crayons on the table saw.&amp;nbsp; :]&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 19:59:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9830983#M68348</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-10-28T19:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9831049#M68349</link>
      <description>&lt;P&gt;I set that path in the publish to PDF options:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ronjonp_0-1603917496094.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/837738i460BD39C4E0B09FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ronjonp_0-1603917496094.png" alt="ronjonp_0-1603917496094.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I also wrote this many moons ago which runs on a reactor to set a bunch of different paths to the current drawing location. Enjoy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(defun rjp-currentpath (/ dp hkcu key)
  ;; RJP » 2019-03-27
  ;; Sets current drawing directory for XREF, ETRANSMIT, SHEETSET and PUBLISH commands
  ;; Writes to registry so use at your own risk...
  (cond	((= (getvar 'dwgtitled) 1)
	 (setq dp   (getvar 'dwgprefix)
	       hkcu (strcat "HKEY_CURRENT_USER\\"
			    (cond ((vlax-user-product-key))
				  ((vlax-product-key))
			    )
		    )
	       key  (strcat hkcu "\\Profiles\\" (getvar 'cprofile) "\\Dialogs\\")
	 )
	 (vl-registry-write (strcat hkcu "\\ETransmit\\Setups\\Standard\\") "Destfolder" dp)
	 (cond ((wcmatch (getenv "username") "*")
		(vl-registry-write (strcat key "AllAnavDialogs\\") "PlacesOrder6" dp)
		(vl-registry-write
		  (strcat key "AllAnavDialogs\\")
		  "PlacesOrder6Display"
		  "Current Directory"
		)
		(vl-registry-write (strcat key "AllAnavDialogs\\") "PlacesOrder6Ext" "")
	       )
	 )
	 (vl-registry-write (strcat hkcu "\\ETransmit\\Setups\\Standard\\") "Destfolder" dp)
	 (foreach reg '(("acad-131" "InitialDirectory")
			("AcPublishDlg" "Location")
			("AcSmNav:OpenSheetSet" "InitialDirectory")
			("BrowseFolder" "InitialDirectory")
			("BrowseforPlotFilePlotDlg" "InitialDirectory")
			("BrowseropenDialog" "InitialDirectory")
			("CreateTransmittalDialog" "DefaultPath")
			("DSDNavDlg" "InitialDirectory")
			("DWFNavDlg" "InitialDirectory")
			("OUTPUTFOLDERDLG" "InitialDirectory")
			("OpenSaveAnavDialogs" "InitialDirectory")
			("PDFopenDialog" "InitialDirectory")
			("SSMNavigator" "OpenSheetSetPath")
			("SSMNavigator" "ImportLayoutsAsSheetsPath")
			("Save Drawing As" "InitialDirectory")
			("Select File" "InitialDirectory")
			("Select a drawing to compare" "InitialDirectory")
			;; ;; RJP » 2022-01-05 -XREF dialog key
			("Select Reference File" "InitialDirectory")
			("Sheet Set Wizard" "BrowseForLayoutsPath")
			("Sheet Set Wizard" "SheetSetCreatePath")
			("XattachFileDialog" "InitialDirectory")
		       )
	   (vl-registry-write (strcat key (car reg)) (cadr reg) dp)
	 )
	)
  )
  (princ)
)
(or *current-path-reactor*
    (setq *current-path-reactor* (vlr-command-reactor nil '((:vlr-commandwillstart . startcommand))))
)
(defun startcommand (calling-reactor startcommandinfo)
  (and (wcmatch (car startcommandinfo) "*XREF,XATTACH,ETRANSMIT,*SHEET*,PUBLISH,*SAVEAS*,OPEN")
       (rjp-currentpath)
  )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 17:19:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9831049#M68349</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2022-01-06T17:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9831152#M68350</link>
      <description>&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;:&lt;BR /&gt;I don't mean one location for all PDFs.&lt;BR /&gt;Each job has a project folder like&lt;BR /&gt;    K:\20 Projects\20156 &lt;CLIENT name=""&gt;\PDF&lt;BR /&gt;or K:\19 Projects\19219 &lt;CLIENT name=""&gt;\PDF&lt;BR /&gt;So I want to set the default PDF folder based on the current DWG's path,&lt;BR /&gt;using acaddoc.lsp or maybe I have to use S::STARTUP, whatever.&lt;BR /&gt;I'm sure I can figure it out by myself, but I just thought it would be fun&lt;BR /&gt;for those independently wealthy contributors around here who have some&lt;BR /&gt;spare time on their hands.&lt;BR /&gt;Of course I could make it more complicated by trying to figure out what&lt;BR /&gt;sheetset is active (that might not be related to the current DWG).&lt;/CLIENT&gt;&lt;/CLIENT&gt;</description>
      <pubDate>Wed, 28 Oct 2020 22:00:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9831152#M68350</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-10-28T22:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9832233#M68351</link>
      <description>&lt;P&gt;After searching the registry for my current path, I just came up with this for starters:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun @Anonymous_plotpath ( / path)
  (setq path (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (getvar "cprofile") "\\General"))
  (setq path (vl-registry-read path "PLOTTOFILEPATH"))
)
&lt;/LI-CODE&gt;
&lt;P&gt;If this is true, then I just have to extract the path I want and do a registry-write.&lt;/P&gt;
&lt;P&gt;It's a little complicated because the DWGs are on the G: drive and they want the PDFs on the K: drive, and you can't be absolutely certain that the project folders are named exactly the same on both drives, well, except for the project number.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 12:50:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9832233#M68351</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-10-29T12:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9832418#M68352</link>
      <description>&lt;P&gt;Without programming, couldn't you just use relative paths?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-10-29_9-55-19.png" style="width: 517px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/837999iCBAA098259CFE7DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-10-29_9-55-19.png" alt="2020-10-29_9-55-19.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 14:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9832418#M68352</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2020-10-29T14:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9832565#M68353</link>
      <description>Great idea, Doug, but the path to the PDF folders is on a different drive&lt;BR /&gt;from where the drawings are.  I have all that worked out this morning&lt;BR /&gt;with vl-directory-this and that.&lt;BR /&gt;Now I am wondering when to invoke the path change.  Do you know if&lt;BR /&gt;Sheetset Manager calls the PLOT or PUBLISH command such that I might pick&lt;BR /&gt;it up via a command reactor?  But by then it may already be too late to&lt;BR /&gt;change the plot path.  I dunno.</description>
      <pubDate>Thu, 29 Oct 2020 15:01:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9832565#M68353</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-10-29T15:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9834790#M68354</link>
      <description>&lt;P&gt;I sincerely doubt that you can interject a path change during a ssm call to plot but the editor reactor reports this activity when you attempt to publish a sheetset.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;; Reaction: :VLR-sysVarWillChange; argument list: (#&amp;lt;VLR-Editor-Reactor&amp;gt; ("XLOADCTL"))
; Reaction: :VLR-sysVarChanged; argument list: (#&amp;lt;VLR-Editor-Reactor&amp;gt; ("XLOADCTL" T))
; Reaction: :VLR-sysVarWillChange; argument list: (#&amp;lt;VLR-Editor-Reactor&amp;gt; ("LAYOUTREGENCTL"))
; Reaction: :VLR-sysVarChanged; argument list: (#&amp;lt;VLR-Editor-Reactor&amp;gt; ("LAYOUTREGENCTL" T))
; Reaction: :VLR-sysVarWillChange; argument list: (#&amp;lt;VLR-Editor-Reactor&amp;gt; ("PLQUIET"))
; Reaction: :VLR-sysVarChanged; argument list: (#&amp;lt;VLR-Editor-Reactor&amp;gt; ("PLQUIET" T))&lt;/LI-CODE&gt;
&lt;P&gt;I am thankful that I don't have to worry about network drives.&amp;nbsp; Have you thought about using a temporary plot folder and then sending it to the correct network path later, after the plot file has been created and reviewed?&amp;nbsp; Most of the time, I'm plotting and replotting during the checking process anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 12:49:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9834790#M68354</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2020-10-30T12:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9835325#M68355</link>
      <description>@Anonymous :&lt;BR /&gt;I appreciate your infinite sincerity, but when I get a chance I'll try some&lt;BR /&gt;reactors and registry slamming and report back.  The trouble is that I&lt;BR /&gt;can't try it at home, and at work I should be working.  Oh well.</description>
      <pubDate>Fri, 30 Oct 2020 16:32:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/9835325#M68355</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-10-30T16:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/12775368#M68356</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;please excuse my ignorance, but I have some questions regarding the lisp.&amp;nbsp; Do i put it in this location (C:\Program Files\Autodesk\AutoCAD 20XX\Support)?&lt;/P&gt;&lt;P&gt;Do I need to name it something specific?&lt;/P&gt;&lt;P&gt;Currently, I did put it in that location and gave it a random name.&amp;nbsp; When Batch Plotting (Publish) it did not open the folder location of the drawing.&amp;nbsp; It still opened the location that is default in the Publish Options.&amp;nbsp; Do i need to change the default location?&amp;nbsp; Your help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Before finding your lisp, I tried the &lt;I&gt;acaddoc.lsp&lt;/I&gt; which works if you are printing dwg to pdf in plot, but it does nothing when you publish/batch plot.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 16:18:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/12775368#M68356</guid>
      <dc:creator>Jeff.Cahill85</dc:creator>
      <dc:date>2024-05-15T16:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13024815#M68357</link>
      <description>&lt;P&gt;Hey John,&lt;/P&gt;&lt;P&gt;I've been working though the very thing. I think reactors are way too much over kill. I simply have a lisp that loads and runs when ever a drawing is loaded. I find the drawing path with (getvar "dwgprefix") and have a function that derives the root project path from that, then adds what ever folder(s) to set a publish output sub folder. I then use the following snippet to set the paths for the project specific sub folders in the registry.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;(setq key (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (getvar "cprofile") "\\Dialogs\\"))(ARegPut_func (strcat key "AcPublishDlg") "Location" "Path")&lt;BR /&gt;(ARegPut_func (strcat key "AcPublishDlg\\MRU Local") "File0" "Path")&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 00:57:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13024815#M68357</guid>
      <dc:creator>pdmasonnz</dc:creator>
      <dc:date>2024-09-17T00:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13024816#M68358</link>
      <description>&lt;P&gt;Hey John,&lt;/P&gt;&lt;P&gt;I've been working though the very thing. I think reactors are way too much over kill. I simply have a lisp that loads and runs when ever a drawing is loaded. I find the drawing path with (getvar "dwgprefix") and have a function that derives the root project path from that, then adds what ever folder(s) to set a publish output sub folder. I then use the following snippet to set the paths for the project specific sub folders in the registry.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;(setq key (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (getvar "cprofile") "\\Dialogs\\"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(ARegPut_func (strcat key "AcPublishDlg") "Location" "Path")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(ARegPut_func (strcat key "AcPublishDlg\\MRU Local") "File0" "Path")&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 01:02:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13024816#M68358</guid>
      <dc:creator>pdmasonnz</dc:creator>
      <dc:date>2024-09-17T01:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13031789#M68359</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This discussion is for command &lt;STRONG&gt;PUBLISH&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use a session gremlin to store the specific destination directory path for that file.&lt;/P&gt;&lt;P&gt;I checked and the gremlin is "sand-boxed".&lt;/P&gt;&lt;P&gt;Setting the path at startup will not work where there are multiple drawings opened in the editor. The last opened file wins.&lt;/P&gt;&lt;P&gt;As you may know the registry has just one key for this value. And SDI is now permanently disabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One can also store the path in a dictionary object but one additional key *might be* needed to compare the current file's name to that which is stored (or other methods of identifying the file). Rewrite as required (project started life as a template).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reactor commandwillstart:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Build your default path here if does not exist and store as a session gremlin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (or USER_PUBLISH (setq USER_PUBLISH ... ))&lt;/P&gt;&lt;P&gt;2. You mentioned the destination directory may not exist. This is the place to test for and build if missing.&lt;/P&gt;&lt;P&gt;3. Set the path in the registry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ...\Profiles\&amp;lt;&amp;lt;Unnamed Profile&amp;gt;&amp;gt;\Dialogs\AcPublishDlg&lt;/P&gt;&lt;P&gt;(vl-registry-write ... "Location" USER_PUBLISH)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reactor commandended:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Fetch the actual path that was used and store as the session gremlin [/dictionary object].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (setq USER_PUBLISH (vl-registry-read ... "Location"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We start in the root directory of the project and let the user navigate to the "\PDF Files\Review Sets" or other sub-directories to the \PDF Files\ root directory as required. Once the command completed, the next time PUBLISH is called, the Location is set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command PLOT is similar - USER_PLOT&lt;/P&gt;&lt;P&gt;Command WBLOCK is also in my arsenal but does not have a session gremlin (set the registry key to getvar dwgprefix).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 19:35:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13031789#M68359</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2024-09-19T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13034006#M68360</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16097938"&gt;@pdmasonnz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hey John,&lt;/P&gt;
&lt;P&gt;I've been working though the very thing. I think reactors are way too much over kill. I simply have a lisp that loads and runs when ever a drawing is loaded. I find the drawing path with (getvar "dwgprefix") and have a function that derives the root project path from that, then adds what ever folder(s) to set a publish output sub folder. I then use the following snippet to set the paths for the project specific sub folders in the registry.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;
&lt;P&gt;***&lt;/P&gt;
&lt;P&gt;(setq key (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (getvar "cprofile") "\\Dialogs\\"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(ARegPut_func (strcat key "AcPublishDlg") "Location" "Path")&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;(ARegPut_func (strcat key "AcPublishDlg\\MRU Local") "File0" "Path")&lt;/P&gt;
&lt;P&gt;***&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16097938"&gt;@pdmasonnz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A reactor is needed if you have multiple drawings open. Your method will not work since last opened wins. Unless you're using single document mode. (SDI = 1)&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 17:57:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13034006#M68360</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2024-09-20T17:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Publish to PDF default location</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13034849#M68361</link>
      <description>&lt;P&gt;I dont use publish so we used a Plot lisp, in the plot lisp it would set the pdf path to \pdf below the current dwg directory, yes it made the pdf if it did not exist. A second step was it would produce individual pdf's but we used Ghostscript via lisp to join them back into one pdf also.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; check that pdf directory exists
(setq dwgpre (strcat (getvar "dwgprefix") "\pdf"))
(if (= (vl-file-directory-p dwgpre) nil)
(vl-mkdir dwgpre)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just made finding the pdfs much easier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make it part of start up.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2024 07:27:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/publish-to-pdf-default-location/m-p/13034849#M68361</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-09-21T07:27:53Z</dc:date>
    </item>
  </channel>
</rss>

