<?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: Batch Plot to pdf in model space in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8347525#M133788</link>
    <description>&lt;P&gt;Attach an example of your title block file.&lt;/P&gt;</description>
    <pubDate>Sat, 20 Oct 2018 10:00:40 GMT</pubDate>
    <dc:creator>maratovich</dc:creator>
    <dc:date>2018-10-20T10:00:40Z</dc:date>
    <item>
      <title>Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6213711#M133773</link>
      <description>&lt;P&gt;Please help me,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I want to know is there any lisp for printing multiple blocks to pdf at once?&lt;/DIV&gt;&lt;DIV&gt;I have hundreds of drawing and each drawing have many title blocks in model/Layout in different size (all title blocks are in blocks named A1). So if i use publish command, i have to open all 100 drawings and make page setup for all title blocks. It is waste of time. So i am looking for a program which print a specific &amp;nbsp;blocks one by one (instead of selecting a window/layout/extends) in model or layout converting to pdf at once. Hope you understand the matter. &lt;SPAN&gt;Help would be appreciated&amp;nbsp;&lt;/SPAN&gt;(I am really sorry for my poor English).&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Mar 2016 07:58:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6213711#M133773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-14T07:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6215397#M133774</link>
      <description>&lt;P&gt;So apparently the person who set all these title blocks up in model space &amp;amp; paper space with different scales really need to be trained to do it properly and consistantly. Since there is no consistancy, there is no lisp routine that can do this automated for you. You would have to open&amp;nbsp;each drawing and set it all up properly so you can use the Publish command the next go around.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;A href="http://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3aareaobjectlink_windows32and64%3aen" target="_blank"&gt;Area Object Link&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addattmod_windows32and64%3aen" target="_blank"&gt;Attribute Modifier&lt;/A&gt; | &lt;A href="http://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addsetup_windows32and64%3aen" target="_blank"&gt;Dwg Setup&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addcalc_windows32and64%3aen" target="_blank"&gt;Feet-Inch Calculator &lt;/A&gt;&lt;SPAN style="font-family: Arial,sans-serif; text-shadow: auto;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3alayerapps_windows32and64%3aen" target="_blank"&gt;Layer Apps&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addlist_windows32and64%3aen" target="_blank"&gt;List on Steroids&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3addzmscl_windows32and64%3aen" target="_blank"&gt;VP Zoom Scales&lt;/A&gt; | &lt;A href="https://apps.exchange.autodesk.com/ACD/en/Home/Index" target="_blank"&gt;Exchange App Store&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 22:20:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6215397#M133774</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2016-03-14T22:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6216008#M133775</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Please help me,&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;I want to know is there any lisp for printing multiple blocks to pdf at once?&lt;/DIV&gt;
&lt;DIV&gt;I have hundreds of drawing and each drawing have many title blocks in model/Layout in different size (all title blocks are in blocks named A1). So if i use publish command, i have to open all 100 drawings and make page setup for all title blocks. It is waste of time. So i am looking for a program which print a specific &amp;nbsp;blocks one by one (instead of selecting a window/layout/extends) in model or layout converting to pdf at once. Hope you understand the matter. &lt;SPAN&gt;Help would be appreciated&amp;nbsp;&lt;/SPAN&gt;(I am really sorry for my poor English).&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello arukaroor and welcome to the Autodesk Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps alt-edited"&gt;Firstly&lt;/SPAN&gt;, I &lt;SPAN class="hps"&gt;fully&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;agree with&lt;/SPAN&gt; Paul Li's.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To plot one dwg at a time, and ss a starting point, if your title blocks are&amp;nbsp;not dynamic, &lt;SPAN class="hps alt-edited"&gt;perhaps&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;something like this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;will do the trick...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Untested...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun c:demo (/ dwg file hnd i len llpt lst mn mx sc ss tab urpt)
    (if (setq ss (ssget "_X" '((0 . "INSERT") (2 . "A1"))))
        (progn
            (repeat (setq i (sslength ss))
                (setq hnd (ssname ss (setq i (1- i)))
                      tab (cdr (assoc 410 (entget hnd)))
                      lst (cons (cons tab hnd) lst)
                )
            )
            (setq lst (vl-sort lst '(lambda (x y) (&amp;gt; (car x) (car y)))))
            (setq i 0)
            (foreach x lst
                (setq file (strcat (getvar 'DWGPREFIX)
                                   (substr (setq dwg (getvar 'DWGNAME)) 1 (- (strlen dwg) 4))
                                   "-"
                                   (itoa (setq i (1+ i)))
                                   ".pdf"
                           )
                )
                (if (findfile file)
                    (vl-file-delete file)
                )
                (vla-getboundingbox (vlax-ename-&amp;gt;vla-object (cdr x)) 'mn 'mx)
                (setq llpt (vlax-safearray-&amp;gt;list mn)
                      urpt (vlax-safearray-&amp;gt;list mx)
                      len  (distance llpt (list (car urpt) (cadr llpt)))
                      sc   (fix (/ 841.0 len))
                )
                (command "-plot"
                         "yes"
                         (car x)
                         "DWG TO PDF.PC3"
                         "ISO A1 (841.00 x 594.00 MM)"
                         "Millimeters"
                         "Landscape"
                         "No"
                         "Window"
                         llpt
                         urpt
                         (strcat (itoa sc) ":1")
                         "Center"
                         "yes"
                         "grayscale.ctb"
                         "yes"
                         ""
                )
                (if (/= (car x) "Model")
                    (command "No" "No" file "no" "Yes")
                    (command
                        file
                        "no"
                        "Yes"
                    )
                )
            )
        )
    )
    (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 10:13:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6216008#M133775</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-15T10:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220265#M133776</link>
      <description>&lt;P&gt;Hi hmsilva,&lt;/P&gt;&lt;P&gt;Thanks for your replay.&lt;/P&gt;&lt;P&gt;I copy this code and paste in to a notepad then save as .lsp file. after i load&amp;nbsp;and type demo but its not working. Actually i dont have deep knowledge in lisp. Can u tell me is there any way to load this.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 09:30:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220265#M133776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-17T09:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220273#M133777</link>
      <description>&lt;P&gt;&lt;SPAN class="hps"&gt;Could&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;please&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;attach&lt;/SPAN&gt; a sample dwg?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 09:37:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220273#M133777</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-17T09:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220282#M133778</link>
      <description>&lt;P&gt;Here is the drawing.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 09:46:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220282#M133778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-17T09:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220333#M133779</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Here is the drawing.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;arukaroor,&lt;/P&gt;
&lt;P&gt;are all dwg's in A3, and all in Model space?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun c:demo (/ dwg file hnd i len llpt lst mn mx ss tab urpt)
    (if (setq ss (ssget "_X" '((0 . "INSERT") (2 . "A1-"))))
        (progn
            (repeat (setq i (sslength ss))
                (setq hnd (ssname ss (setq i (1- i)))
                      tab (cdr (assoc 410 (entget hnd)))
                      lst (cons (cons tab hnd) lst)
                )
            )
            (setq lst (vl-sort lst '(lambda (x y) (&amp;gt; (car x) (car y)))))
            (setq i 0)
            (foreach x lst
                (setq file (strcat (getvar 'DWGPREFIX)
                                   (substr (setq dwg (getvar 'DWGNAME)) 1 (- (strlen dwg) 4))
                                   "-"
                                   (itoa (setq i (1+ i)))
                                   ".pdf"
                           )
                )
                (if (findfile file)
                    (vl-file-delete file)
                )
                (vla-getboundingbox (vlax-ename-&amp;gt;vla-object (cdr x)) 'mn 'mx)
                (setq llpt (vlax-safearray-&amp;gt;list mn)
                      urpt (vlax-safearray-&amp;gt;list mx)
                      len  (distance llpt (list (car urpt) (cadr llpt)))
                )
                (command "-plot"
                         "yes"
                         (car x)
                         "DWG TO PDF.PC3"
                         "ISO A3 (420.00 x 297.00 MM)"
                         "Millimeters"
                         "Landscape"
                         "No"
                         "Window"
                         llpt
                         urpt
                         "Fit"
                         "Center"
                         "yes"
                         "grayscale.ctb"
                         "yes"
                         ""
                )
                (if (/= (car x) "Model")
                    (command "No" "No" file "no" "Yes")
                    (command
                        file
                        "no"
                        "Yes"
                    )
                )
            )
        )
    )
    (princ)
)&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 10:47:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220333#M133779</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-17T10:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220373#M133780</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hmsilva,&lt;/P&gt;&lt;P&gt;Some times i have to print in A1 and some times in A2 or A3. So i am suggesting&amp;nbsp;to make pdf all in A1 size so i can print any size. In this drawing all title blocks are in model but some other drawings&amp;nbsp;in layout.&amp;nbsp;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 10:48:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220373#M133780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-17T10:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220377#M133781</link>
      <description>&lt;P&gt;Woowww its working..&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Can you add an option to select model / layout and page size also.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 10:53:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220377#M133781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-17T10:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220396#M133782</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Woowww its working..&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;Can you add an option to select model / layout and page size also.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;arukaroor,&lt;/P&gt;
&lt;P&gt;the demo will plot also layouts, if the "A1-" block exist.&lt;/P&gt;
&lt;P&gt;Paper sizes, correct scale.... &lt;SPAN class="hps"&gt;I could not find in your titleblock something &lt;SPAN class="hps"&gt;that allows the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;code&lt;/SPAN&gt; to select the correct paper size/scale...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;Henrique&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 11:01:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220396#M133782</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-17T11:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220463#M133783</link>
      <description>&lt;P&gt;hmsilva,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified the paper size and ctb. Now i can plot any size and any block. You saved my time&amp;nbsp;&lt;img id="manvery-happy" class="emoticon emoticon-manvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_man-very-happy.png" alt="Man Very Happy" title="Man Very Happy" /&gt;&lt;img id="manvery-happy" class="emoticon emoticon-manvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_man-very-happy.png" alt="Man Very Happy" title="Man Very Happy" /&gt;&lt;img id="manvery-happy" class="emoticon emoticon-manvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_man-very-happy.png" alt="Man Very Happy" title="Man Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot........&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 11:32:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220463#M133783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-17T11:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220469#M133784</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;hmsilva,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I modified the paper size and ctb. Now i can plot any size and any block. You saved my time&amp;nbsp;&lt;img id="manvery-happy" class="emoticon emoticon-manvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_man-very-happy.png" alt="Man Very Happy" title="Man Very Happy" /&gt;&lt;img id="manvery-happy" class="emoticon emoticon-manvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_man-very-happy.png" alt="Man Very Happy" title="Man Very Happy" /&gt;&lt;img id="manvery-happy" class="emoticon emoticon-manvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_man-very-happy.png" alt="Man Very Happy" title="Man Very Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot........&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome, arukaroor&lt;/P&gt;
&lt;P&gt;Glad it's useful for you! &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;P&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 11:35:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6220469#M133784</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-17T11:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6556380#M133785</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Henrique,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you&amp;nbsp;please help by changing the same code to give print to a printer instead of pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:38:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/6556380#M133785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-12T09:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/7105183#M133786</link>
      <description>&lt;P&gt;Thanks a lot for this piece of code !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My company still plots the production drawings&amp;nbsp;in modelspace but with this tool&amp;nbsp;i'm winning a lot of time. (considering 50+ drawings per project)&lt;/P&gt;&lt;P&gt;I was just wondering if there is a way to ajust this too only print blocks that are selected ?&lt;/P&gt;&lt;P&gt;So if I for instance have layoutblocks for an A4 print and for an A3 print, I can do those seperatly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not familiar with the syntax of Lisp otherwise I would have just edited your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greets,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wauter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 13:59:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/7105183#M133786</guid>
      <dc:creator>WauterM.</dc:creator>
      <dc:date>2017-05-24T13:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8347481#M133787</link>
      <description>&lt;P&gt;it working. thank a lot. but it plotting reverse order.&amp;nbsp; how can i change plot order&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/75977"&gt;@hmsilva&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;Here is the drawing.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;arukaroor,&lt;/P&gt;&lt;P&gt;are all dwg's in A3, and all in Model space?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(vl-load-com)
(defun c:demo (/ dwg file hnd i len llpt lst mn mx ss tab urpt)
    (if (setq ss (ssget "_X" '((0 . "INSERT") (2 . "A1-"))))
        (progn
            (repeat (setq i (sslength ss))
                (setq hnd (ssname ss (setq i (1- i)))
                      tab (cdr (assoc 410 (entget hnd)))
                      lst (cons (cons tab hnd) lst)
                )
            )
            (setq lst (vl-sort lst '(lambda (x y) (&amp;gt; (car x) (car y)))))
            (setq i 0)
            (foreach x lst
                (setq file (strcat (getvar 'DWGPREFIX)
                                   (substr (setq dwg (getvar 'DWGNAME)) 1 (- (strlen dwg) 4))
                                   "-"
                                   (itoa (setq i (1+ i)))
                                   ".pdf"
                           )
                )
                (if (findfile file)
                    (vl-file-delete file)
                )
                (vla-getboundingbox (vlax-ename-&amp;gt;vla-object (cdr x)) 'mn 'mx)
                (setq llpt (vlax-safearray-&amp;gt;list mn)
                      urpt (vlax-safearray-&amp;gt;list mx)
                      len  (distance llpt (list (car urpt) (cadr llpt)))
                )
                (command "-plot"
                         "yes"
                         (car x)
                         "DWG TO PDF.PC3"
                         "ISO A3 (420.00 x 297.00 MM)"
                         "Millimeters"
                         "Landscape"
                         "No"
                         "Window"
                         llpt
                         urpt
                         "Fit"
                         "Center"
                         "yes"
                         "grayscale.ctb"
                         "yes"
                         ""
                )
                (if (/= (car x) "Model")
                    (command "No" "No" file "no" "Yes")
                    (command
                        file
                        "no"
                        "Yes"
                    )
                )
            )
        )
    )
    (princ)
)&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 08:53:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8347481#M133787</guid>
      <dc:creator>kajanthangavel</dc:creator>
      <dc:date>2018-10-20T08:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8347525#M133788</link>
      <description>&lt;P&gt;Attach an example of your title block file.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 10:00:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8347525#M133788</guid>
      <dc:creator>maratovich</dc:creator>
      <dc:date>2018-10-20T10:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8347528#M133789</link>
      <description>&lt;P&gt;There it that sample file.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 10:12:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8347528#M133789</guid>
      <dc:creator>kajanthangavel</dc:creator>
      <dc:date>2018-10-20T10:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8347564#M133790</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/95ba0089-1187-43b6-85b2-115f1aa33d85" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 10:59:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8347564#M133790</guid>
      <dc:creator>maratovich</dc:creator>
      <dc:date>2018-10-20T10:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8482836#M133791</link>
      <description>&lt;P&gt;i got this error after using obove lisp&lt;/P&gt;
&lt;P&gt;on the dwg uploded above&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command: DEMO&lt;BR /&gt;Unknown command "DEMO". Press F1 for help.&lt;/P&gt;
&lt;P&gt;Command: C:\Users\ali.usman\Downloads\NDW9578-17.pdf Unknown command "USMAN\DOWNLOADS\NDW9578-17.PDF". Press F1 for help.&lt;/P&gt;
&lt;P&gt;Command: no Unknown command "NO". Press F1 for help.&lt;/P&gt;
&lt;P&gt;Command: Yes Unknown command "YES". Press F1 for help.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 08:58:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8482836#M133791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-21T08:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Plot to pdf in model space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8482850#M133792</link>
      <description>&lt;P&gt;Try this : &lt;A href="https://www.kdmsoft.net/revers.html" target="_blank"&gt;Revers - Automatic batch printing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 09:08:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plot-to-pdf-in-model-space/m-p/8482850#M133792</guid>
      <dc:creator>maratovich</dc:creator>
      <dc:date>2018-12-21T09:08:07Z</dc:date>
    </item>
  </channel>
</rss>

