<?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: Completed auto plot that saves to specific folder in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8917695#M86444</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have input your list but it ignores all of it and continues to save the PDFs into the same folder as the dwg file being used. I tried playing with the locations to see if it could be a problem with which folders are being called out but still nothing there is no difference then the lisp I first posted.&lt;/P&gt;&lt;P&gt;After it plots it shows this error:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Command: ; error: extra right paren on input&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;But I don't think it has to do with why it wont save the PDFs in the right folder.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 17:35:11 GMT</pubDate>
    <dc:creator>jcr96</dc:creator>
    <dc:date>2019-07-18T17:35:11Z</dc:date>
    <item>
      <title>Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8912346#M86438</link>
      <description>&lt;P&gt;Ive been working and asking for help about this auto plot lisp. It works perfectly no problems but it sends the pdf to the folder the dwg file is in which is fine but it would be far more convenient if it saved to a different folder. I know how to change the location to a subfolder in the current dwg's folder but as far as going up to a previous folder, that is what I cant seem to find and ive been looking through all forums to get my solution but none.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To best understand where im trying to save the pdf file, my office creates a separate folder for each project and name it by its "address", in the address folder&amp;gt; there is a subfolder called "CAD" where the drawing is, and another sub folder called "PDF", where a &amp;gt; subsub folder "Preliminary Design" is where they go to be separated by specific submittals and its in this folders that I want the pdf to save to not the "CAD" folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; "CAD"&amp;nbsp; &amp;gt; dwg file&amp;nbsp; (current location) &amp;nbsp;&lt;/P&gt;&lt;P&gt;"ADDRESS"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; "PDF"&amp;gt;&amp;nbsp; "Preliminary Design"(desired folder)&lt;/P&gt;&lt;P&gt;The issue is that the pdfs are saving into the "cad" folder and its the dwgprefix part of the equation that can differentiate the specific job the pdfs are coming from and save it to the dwg files location but how do I specify from that starting point to go up to the previous folder, the "address" folder and into the "PDF" folder and down deeper into the sub folder called "Preliminary Design". I have used a lisp that does just this before but when I left that office I didn't copy that command for myself and I regret it, so if anyone can understand and be able to figure out how to do this id really appreciate it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the list, mind the plot style:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;BR /&gt;(defun c:dpdf (/ file)&lt;BR /&gt;&amp;nbsp; (setvar "cmdecho" 1)&lt;BR /&gt;&amp;nbsp; &lt;FONT color="#ff0000"&gt;(setq file (strcat (getvar 'DWGPREFIX)&lt;/FONT&gt; (substr (setq dwg (getvar 'DWGNAME)) 1 (- (strlen dwg) 4)) ".pdf"))&lt;BR /&gt;&amp;nbsp; (if (findfile file)(vl-file-delete file))&lt;BR /&gt;&amp;nbsp; (command "-plot" "yes" "" "DWG TO PDF.PC3" "ARCH D (24.00 x 36.00 Inches)" "Inches" "Landscape" "yes" "window" "0,0" "36,24" "1:1" "0,0" "yes" "SCD SHADER.stb" "yes" "no" "yes" "no" (getvar "CTAB") "No" "yes")&lt;BR /&gt;)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 16:15:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8912346#M86438</guid>
      <dc:creator>jcr96</dc:creator>
      <dc:date>2019-07-16T16:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8912571#M86439</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6748791"&gt;@jcr96&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the following function return the path after stripping out all characters from "\\cad\\...."&lt;/P&gt;&lt;P&gt;does this puts you on the direction to continue on your own?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun test (/ prefix p)
 (setq prefix (getvar "dwgprefix"))
 (setq p (vl-string-search (strcase "\\cad\\") (strcase prefix)))
 (substr prefix 1 (1+ p))
)&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2019 17:54:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8912571#M86439</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-07-16T17:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8912729#M86440</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for helping, I might be able to continue but I am not quite understanding what you mean when you say its stripping all from \\CAD\\. Can you explain that a little more so i can understand whats doing what to add that to my function&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 19:27:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8912729#M86440</guid>
      <dc:creator>jcr96</dc:creator>
      <dc:date>2019-07-16T19:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8914493#M86441</link>
      <description>&lt;P&gt;Are you familiar with sheet set manager? You can set your output folder for your PDF's within the PDF publish options.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 13:36:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8914493#M86441</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-07-17T13:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8916087#M86442</link>
      <description>&lt;P&gt;Just a subtle change may explain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun test (/ prefix p)
(setq prefix (getvar "dwgprefix"))
(setq p (vl-string-search (strcase "\\Downloads\\") (strcase prefix)))
(setq prefix (strcat (substr prefix 1 (1+ p)) "pdf\\"))
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jul 2019 04:45:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8916087#M86442</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2019-07-18T04:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8916115#M86443</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6748791"&gt;@jcr96&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just run (test) function and see what it returns?!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 05:07:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8916115#M86443</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-07-18T05:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8917695#M86444</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have input your list but it ignores all of it and continues to save the PDFs into the same folder as the dwg file being used. I tried playing with the locations to see if it could be a problem with which folders are being called out but still nothing there is no difference then the lisp I first posted.&lt;/P&gt;&lt;P&gt;After it plots it shows this error:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Command: ; error: extra right paren on input&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;But I don't think it has to do with why it wont save the PDFs in the right folder.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 17:35:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8917695#M86444</guid>
      <dc:creator>jcr96</dc:creator>
      <dc:date>2019-07-18T17:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8917957#M86445</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6748791"&gt;@jcr96&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:dpdf (/ up_folder ; local function
	         file)

 (defun up_folder (prefix / p)
  (if (setq p (vl-string-search (strcase "\\cad\\") (strcase prefix)))
   (substr prefix 1 p)
  )
 ); up_folder
  
 (setvar "cmdecho" 1)
 (setq file (strcat (up_folder (getvar 'DWGPREFIX)) "\\pdf\\Preliminary Design\\" (substr (setq dwg (getvar 'DWGNAME)) 1 (- (strlen dwg) 4)) ".pdf"))
 (if (findfile file)(vl-file-delete file))
 (command "-plot" "yes" "" "DWG TO PDF.pc3" "ARCH D (24.00 x 36.00 Inches)" "Inches" "Landscape" "yes"
	   "window" "0,0" "36,24" "1:1" "0,0" "yes" "SCD SHADER.stb" "yes" "no" file "no" "yes")
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jul 2019 19:46:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8917957#M86445</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-07-18T19:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8918163#M86446</link>
      <description>&lt;P&gt;sorry&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt; , same issue, I had to add a few parentheses to the end to get it to work but still it ignores the up folder lisp. Your lisp is compatible it doesn't give any issue its just the command wont recognize it for some reason.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 21:35:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8918163#M86446</guid>
      <dc:creator>jcr96</dc:creator>
      <dc:date>2019-07-18T21:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8918609#M86447</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6748791"&gt;@jcr96&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works fine here.&amp;nbsp; what AutoCAD version do have? post the tree folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 05:58:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8918609#M86447</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-07-19T05:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8918642#M86448</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello jcr96,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just specifying (getvar "CTAB") you get the current tab name like MODEL, Layout1, or Layout2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The file is written to the current directory because its only the name of the tab.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Replace the (getvar "CTAB") with the variable that contains the new directory path + tab name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also, its important to detect Model vs Layouts since the (command "-plot" ... )&amp;nbsp; requires a slightly different line statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(defun c:dpdf (/ file)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; (setvar "cmdecho" 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#000000"&gt;(setq file (strcat (getvar 'DWGPREFIX)&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;(substr (setq dwg (getvar 'DWGNAME)) 1 (- (strlen dwg) 4)) ".pdf"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; (if (findfile file)(vl-file-delete file))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; (command "-plot" "yes" "" "DWG TO PDF.PC3" "ARCH D (24.00 x 36.00 Inches)" "Inches" "Landscape" "yes" "window" "0,0" "36,24" "1:1" "0,0" "yes" "SCD SHADER.stb" "yes" "no" "yes" "no" &lt;FONT color="#FF0000"&gt;(getvar "CTAB")&lt;/FONT&gt; "No" "yes")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 06:23:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8918642#M86448</guid>
      <dc:creator>Scottu2</dc:creator>
      <dc:date>2019-07-19T06:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8919707#M86449</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im using AutoCad 2016&lt;/P&gt;&lt;P&gt;for the location of the DWG file:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;\\SERVER1\Users\Server\Documents\NewScdServer\SCD\Customer Files\2019\11900 N. Balboa Blvd\CAD&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;for the desired location of the PDF:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;\\SERVER1\Users\Server\Documents\NewScdServer\SCD\Customer Files\2019\11900 N. Balboa Blvd\PDF\PRELIMINARY DESIGN&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 15:36:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8919707#M86449</guid>
      <dc:creator>jcr96</dc:creator>
      <dc:date>2019-07-19T15:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8919787#M86450</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1111898"&gt;@Scottu2&lt;/a&gt;, You were right I added the variables from&amp;nbsp; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;&amp;nbsp; to the file name section and it works perfectly now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You very very much&lt;/P&gt;&lt;P&gt;Here is the completed lisp:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT&gt;(defun c:pdf (/ up_folder ; local function&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&amp;nbsp;(defun up_folder (prefix / p)&lt;BR /&gt;&amp;nbsp; (if (setq p (vl-string-search (strcase "\\cad\\") (strcase prefix)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; (substr prefix 1 p)&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;); up_folder&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;(setvar "cmdecho" 1)&lt;BR /&gt;&amp;nbsp;(setq file (strcat (up_folder (getvar 'DWGPREFIX)) "\\pdf\\Preliminary Design\\" (substr (setq dwg (getvar 'DWGNAME)) 1 (- (strlen dwg) 4)) ".pdf"))&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;(COMMAND "-PLOT"&lt;BR /&gt;"Yes" ;Detailed plot configuration?&lt;BR /&gt;"" ;Get a layout name&lt;BR /&gt;"DWG To PDF.pc3" ;Enter an output device name&lt;BR /&gt;"ARCH D (24.00 x 36.00 INCHES)" ;Enter paper size&lt;BR /&gt;"inches" ;Enter paper units&lt;BR /&gt;"Landscape" ;Enter drawing orientation&lt;BR /&gt;"No" ;Plot upside down?&lt;BR /&gt;"window" ;Enter plot area&lt;BR /&gt;"0,0"&lt;BR /&gt;"36,24"&lt;BR /&gt;"1:1" ;Enter plot scale&lt;BR /&gt;"0,0" ;Enter plot offset (x,y)&lt;BR /&gt;"Yes" ;Plot with plot styles?&lt;BR /&gt;"SCD SHADER.stb" ;Enter plot style table name or&lt;BR /&gt;"yes" ;Plot with lineweights?&lt;BR /&gt;"No" ;Scale lineweights with plot scale?&lt;BR /&gt;"yes" ;Plot paper space first?&lt;BR /&gt;"No" ;Hide paperspace objects?&lt;BR /&gt;(setq file (strcat (up_folder (getvar 'DWGPREFIX)) "\\pdf\\Preliminary Design\\" (getvar "CTAB") ".pdf")) ;Name of file&lt;BR /&gt;"No" ;Save changes to page setup&lt;BR /&gt;"yes" ;Proceed with plot&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jul 2019 16:08:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/8919787#M86450</guid>
      <dc:creator>jcr96</dc:creator>
      <dc:date>2019-07-19T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Completed auto plot that saves to specific folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/12174169#M86451</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also trying to do what you were trying to do exactly. (Saving PDFs into dedicated location which is a sub-folder of project. To clarify, inside each project folder will have sub folders. ( one for Cad and one for PDF)&amp;nbsp; When it comes to LISP , I am an absolute beginner.&amp;nbsp; Anyway, I upload your final version as it is. and when I run it , it is giving me an error saying "error: bad argument type: stringp nil". I am using 2021 version.&amp;nbsp; I don't know what went wrong. I have included my folder path in there.&amp;nbsp; If you or anyone can assist me, I would really appreciate it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my folder structure is as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CAD File location - \RPXXXXX.XX1 PK\60 CADD\2 DRG\2 CI&lt;/P&gt;&lt;P&gt;PDF destination (preferred) -&amp;nbsp;\RPXXXXX.XX1 PK\60 CADD\4PDF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks everyone.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 09:10:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/completed-auto-plot-that-saves-to-specific-folder/m-p/12174169#M86451</guid>
      <dc:creator>phyoak11</dc:creator>
      <dc:date>2023-08-16T09:10:38Z</dc:date>
    </item>
  </channel>
</rss>

