<?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: Print multiple sheets from Model Space in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6687695#M126542</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If frames are blocks, the lisp I gave and made for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@+&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2016 07:20:01 GMT</pubDate>
    <dc:creator>patrick_35</dc:creator>
    <dc:date>2016-11-15T07:20:01Z</dc:date>
    <item>
      <title>Print multiple sheets from Model Space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6685007#M126533</link>
      <description>&lt;P&gt;I have created a file with multiple drawings in the model tab.&lt;BR /&gt;In order to print them i follow the next steps:&lt;/P&gt;&lt;P&gt;1.Ctrl+P&lt;BR /&gt;2. Previous Plot (Let’s say that i have already set my preferences)&lt;BR /&gt;3. Window (in order to select the area-drawing i want to plot)&lt;BR /&gt;4. preview (to check my selection)&lt;BR /&gt;5. plot&lt;/P&gt;&lt;P&gt;I want a faster way, cause i have to do the above steps for 120 drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know alot about lisps so if you want any&amp;nbsp;additional information ask me.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 17:43:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6685007#M126533</guid>
      <dc:creator>ntsaousoglou</dc:creator>
      <dc:date>2016-11-13T17:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Print multiple sheets from Model Space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6685186#M126534</link>
      <description>&lt;P&gt;Why not learn how to use paper space with one layout tab for each sheet? &amp;nbsp;Then learn about sheet set manager and plot all your sheets in one step. &amp;nbsp;But if you prefer using R11 (or maybe that was R10), then at least save a view for each sheet in Modelspace and just plot the view. &amp;nbsp;About how many views (sheets) would you have in each drawing?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 21:52:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6685186#M126534</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2016-11-13T21:52:30Z</dc:date>
    </item>
    <item>
      <title>Re : Print multiple sheets from Model Space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6685547#M126535</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example that uses pdfcreator and in which you define the name of the cartridge&lt;/P&gt;
&lt;PRE&gt;Mon_Cartouche "Cart" ; Name of cartridge&lt;/PRE&gt;
&lt;P&gt;The lisp&lt;/P&gt;
&lt;PRE&gt;(defun c:imp(/ bck bg def doc ent hd lay lst pdf plt sel tot kill nombl mon_impression Mon_Cartouche)
  (defun kill(qui / item meth1 meth2 obj WMI)
    (setq WMI (vlax-create-object "WbemScripting.SWbemLocator")
	  meth1 (vlax-invoke WMI 'ConnectServer nil nil nil nil nil nil nil nil)
	  meth2 (vlax-invoke meth1 'ExecQuery "Select * from Win32_Process")
    )
    (vlax-for item meth2
      (and (setq obj (vlax-get item 'CommandLine)) (vl-string-search (strcase qui) (strcase obj))
	(vlax-invoke item 'Terminate)
      )
    )
    (foreach item (list WMI meth1 meth2)
      (vlax-release-object item)
    )
  )

  (defun nombl(bl)
    (if (vlax-property-available-p bl 'effectivename)
      (vla-get-effectivename bl)
      (vla-get-name bl)
    )
  )

  (defun mon_impression(dim)
    (if (&amp;gt; (distance (car dim) (list (caadr dim) (cadar dim) (caddar dim)))
	   (distance (list (caadr dim) (cadar dim) (caddar dim)) (cadr dim))
	)
      (vla-put-plotrotation lay ac270degrees)
      (vla-put-plotrotation lay ac0degrees)
    )
    (vlax-invoke lay 'setwindowtoplot (list (caar dim)(cadar dim))
				      (list (caadr dim)(cadadr dim))
    )
    (vl-catch-all-apply 'vlax-invoke (list plt 'plottodevice))
  )

  (setq doc (vla-get-activedocument (vlax-get-acad-object))
	Mon_Cartouche "Cart" ; Name of cartridge
  )
  (if (setq def (getenv "Patrick_35_imp"))
    (setq def (atoi def))
    (setq def 1)
  )
  (and (ssget "x" (list (cons 0 "insert") (cons 2 (strcat "`**," Mon_Cartouche))))
    (progn
      (vlax-for ent (setq sel (vla-get-activeselectionset doc))
	(and (eq (strcase (nombl ent)) (strcase Mon_Cartouche))
	  (progn
	    (vla-getboundingbox ent 'bg 'hd)
	    (setq lst (cons (list (vlax-safearray-&amp;gt;list bg) (vlax-safearray-&amp;gt;list hd)) lst))
	  )
	)
      )
      (vla-delete sel)
      (cond
	((eq (logand def 1) 1)
	  (setq lst (vl-sort lst '(lambda(a B) (if (equal (cadar a) (cadar B) 0.0001)
						(&amp;lt; (caar a) (caar B))
						(&amp;gt; (cadar a) (cadar B))
					       )
				 )
		    )
	  )
	)
	((eq (logand def 2) 2)
	  (setq lst (vl-sort lst '(lambda(a B) (if (equal (caar a) (caar B) 0.0001)
						(&amp;gt; (cadar a) (cadar B))
						(&amp;lt; (caar a) (caar B))
					       )
				 )
		    )
	  )
	)
	((eq (logand def 4) 4)
	  (setq lst (vl-sort lst '(lambda(a B) (if (equal (cadar a) (cadar B) 0.0001)
						(&amp;lt; (caar a) (caar B))
						(&amp;lt; (cadar a) (cadar B))
					       )
				 )
		    )
	  )
	)
	((eq (logand def 8) 8)
	  (setq lst (vl-sort lst '(lambda(a B) (if (equal (caar a) (caar B) 0.0001)
						(&amp;lt; (cadar a) (cadar B))
						(&amp;lt; (caar a) (caar B))
					       )
				 )
		    )
	  )
	)
      )
      (and (eq (logand def 16) 0) (kill "PDFCreator.exe"))
      (if (setq pdf (vlax-get-or-create-object "PDFCreator.clsPDFCreator"))
	(progn
	  (vlax-invoke pdf 'cstart "/NoProcessingAtStartup")
	  (vlax-put pdf 'cPrinterStop :vlax-false)
	  (vlax-put pdf 'cPrinterStop :vlax-true)
	  (vlax-put pdf 'cWindowState 0)
	  (and (eq (logand def 16) 0) (vlax-invoke pdf 'cClearCache))
	  (vlax-put-property pdf 'cOption "savefilename" (vlax-make-variant (vl-filename-base (getvar "dwgname"))))
	  (setq tot (vlax-get pdf 'count))
	)
	(progn
	  (or (setq pdf2 (vlax-get-or-create-object "PDFCreatorBeta.JobQueue"))
	      (setq pdf2 (vlax-get-or-create-object "PDFCreator.JobQueue"))
	  )
	  (and	(vl-catch-all-error-p (vl-catch-all-apply 'vlax-invoke (list pdf2 'initialize)))
		(eq (logand def 16) 0)
	    (progn
	      (vlax-invoke pdf2 'releasecom)
	      (vlax-invoke pdf2 'initialize)
	    )
	  )
	  (setq tot (vlax-get pdf2 'count))
	)
      )
      (setq lay (vla-get-activelayout doc)
	    plt (vla-get-plot doc)
      )
      (vla-put-configname               lay "PDFCreator")
      (vla-refreshplotdeviceinfo        lay)
      (vla-put-canonicalmedianame       lay "A4")
      (vla-put-centerplot               lay :vlax-true)
      (vla-put-paperunits               lay acMillimeters)
      (vla-put-plothidden               lay :vlax-false)
      (vlax-invoke lay 'setwindowtoplot '(0.0 0.0) '(10.0 10.0))
      (vla-put-plotrotation             lay ac270degrees)
      (vla-put-plottype                 lay acWindow)
      (vla-put-plotviewportborders      lay :vlax-false)
      (vla-put-plotviewportsfirst       lay :vlax-true)
      (vla-put-plotwithlineweights      lay :vlax-true)
      (vla-put-plotwithplotstyles       lay :vlax-true)
      (vla-put-scalelineweights         lay :vlax-false)
      (vla-put-standardscale            lay acVpScaleToFit)
      (vla-put-stylesheet               lay "monochrome.ctb")
      (vla-put-usestandardscale         lay :vlax-true)
      (and (vl-catch-all-error-p (setq bck (vl-catch-all-apply 'getvar (list "backgroundplot")))) (setq bck nil))
      (and bck (setvar "backgroundplot" 0))
      (foreach ent lst
	(mon_impression ent)
	(cond
	  (pdf
	    (while (/= (vlax-get pdf 'cCountOfPrintjobs) (1+ tot)))
	    (setq tot (1+ tot))
	  )
	  (pdf2
	    (vlax-invoke-method pdf2 'waitforjobs (setq tot (1+ tot)) 10)
	  )
	)
      )
      (cond
	(pdf
	  (and (eq (logand def 16) 0) (vlax-invoke pdf 'cCombineAll))
	  (vlax-release-object pdf)
	)
	(pdf2
	  (and (eq (logand def 16) 0)
	    (progn
	      (vlax-invoke pdf2 'mergealljobs)
	      (and (setq fic (getfiled "Nom du PDF" (strcat (getvar "dwgprefix") (vl-filename-base (getvar "dwgname")) ".pdf") "PDF" 1))
		(vlax-invoke (vlax-get pdf2 'nextjob) 'convertto fic)
	      )
	      (vlax-invoke pdf2 'releasecom)
	    )
	  )
	  (vlax-release-object pdf2)
	)
      )
      (and bck (setvar "backgroundplot" bck))
    )
  )
  (princ)
)&lt;/PRE&gt;
&lt;P&gt;Options&lt;/P&gt;
&lt;PRE&gt;(defun c:impo(/ chx def doc)
  (setq doc (vla-get-activedocument (vlax-get-acad-object)))
  (vla-startundomark doc)
  (if (setq def (getenv "Patrick_35_imp"))
    (setq def (atoi def))
    (setq def 1)
  )
  (princ "\nValues for pdf printing : ")
  (princ "\n\t\t  1 : Start from the Top to Left, then towards the right")
  (princ "\n\t\t  2 : Start from the Top to Left, then to Down")
  (princ "\n\t\t  4 : Start from the Low to Left, then towards the right")
  (princ "\n\t\t  8 : Start from the Low to Left, then to up")
  (princ "\n\t\t 16 : Do not merge pdf")
  (initget 6)
  (setq chx (getint (strcat "\nPDF options &amp;lt;" (itoa def) "&amp;gt; : ")))
  (and chx (/= chx def) (vl-position (rem chx 16) '(1 2 4 8))
    (setenv "Patrick_35_imp" (itoa chx))
  )
  (vla-endundomark doc)
  (princ)
)&lt;/PRE&gt;
&lt;P&gt;@+&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 07:31:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6685547#M126535</guid>
      <dc:creator>patrick_35</dc:creator>
      <dc:date>2016-11-14T07:31:01Z</dc:date>
    </item>
    <item>
      <title>Re : Print multiple sheets from Model Space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6685715#M126536</link>
      <description>&lt;P&gt;I forgot this routine to merge the pdf when the option bit is at 16&lt;/P&gt;
&lt;PRE&gt;(defun c:impf(/ pdf2)
  (or (setq pdf2 (vlax-get-or-create-object "PDFCreatorBeta.JobQueue"))
      (setq pdf2 (vlax-get-or-create-object "PDFCreator.JobQueue"))
  )
  (and	(vl-catch-all-error-p (vl-catch-all-apply 'vlax-invoke (list pdf2 'initialize)))
	(&amp;gt; (vlax-get pdf2 'count) 0)
    (progn
      (vlax-invoke pdf2 'mergealljobs)
      (and (setq fic (getfiled "Nom du PDF" (strcat (getvar "dwgprefix") (vl-filename-base (getvar "dwgname")) ".pdf") "PDF" 1))
	(vlax-invoke (vlax-get pdf2 'nextjob) 'convertto fic)
      )
      (vlax-invoke pdf2 'releasecom)
    )
  )
  (vlax-release-object pdf2)
  (princ)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@+&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 09:40:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6685715#M126536</guid>
      <dc:creator>patrick_35</dc:creator>
      <dc:date>2016-11-14T09:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Print multiple sheets from Model Space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6686481#M126537</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4066907"&gt;@ntsaousoglou&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have created a file with multiple drawings in the model tab.&lt;BR /&gt;In order to print them i follow the next steps:&lt;/P&gt;
&lt;P&gt;1.Ctrl+P&lt;BR /&gt;2. Previous Plot (Let’s say that i have already set my preferences)&lt;BR /&gt;3. Window (in order to select the &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;area-drawing&lt;/STRONG&gt;&lt;/FONT&gt; i want to plot)&lt;BR /&gt;4. &lt;FONT color="#FF0000"&gt;preview&lt;/FONT&gt; (to check my selection)&lt;BR /&gt;5. plot&lt;/P&gt;
&lt;P&gt;I want a&lt;STRONG&gt; faster&lt;/STRONG&gt; way, cause i have to do the above steps for &lt;FONT color="#808000"&gt;&lt;STRONG&gt;120&lt;/STRONG&gt;&lt;/FONT&gt; drawings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;[ Multiple drawing sheets ]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;if&amp;nbsp;you are referring to a "Drawing Sheet" within a title block as BLOCK object on Model Space then its easy, but you have to make do without&amp;nbsp;the &lt;FONT color="#FF0000"&gt;preview&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;You may need to run a program that would iterate&amp;nbsp;through each title block [ to consider scale of course ] . That will take care of the area-drawing selection.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;[ Single&amp;nbsp;drawing sheet ]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808000"&gt;Assuming&amp;nbsp;that is 120 drawing files&amp;nbsp;and not 120 drawing sheet on a single file,&lt;FONT color="#000000"&gt; If it's just one drawing area you can use &lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-EE9F55FF-D253-4AEC-B95B-69DA4EBE90E8-htm.html" target="_blank"&gt;publish&lt;/A&gt; to go through a number of files as long as you are using a &lt;STRONG&gt;saved&lt;/STRONG&gt; page-setup on a file. [ if you happen to have different scales per drawing sheet otherwise&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;one page setup will be enough ]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Publish = Faster&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;HTH&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 16:13:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6686481#M126537</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2016-11-14T16:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Print multiple sheets from Model Space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6686564#M126538</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564264"&gt;@pbejse&lt;/a&gt; wrote:&lt;/BLOCKQUOTE&gt;
&lt;P&gt;....You may need to run a program that would iterate&amp;nbsp;through each title block [ to consider scale of course ] . That will take care of the area-drawing selection...&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Very much like what patrick_35 posted&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interesting &amp;nbsp;--&amp;gt; (defun &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Kill&lt;/STRONG&gt; &lt;/FONT&gt;...--&amp;gt; &amp;nbsp;(kill "PDFCreator.exe")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pBe&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 16:48:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6686564#M126538</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2016-11-14T16:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Print multiple sheets from Model Space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6687001#M126539</link>
      <description>&lt;P&gt;My document looks like the picture. Many individual drawings In the model tab.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="acad.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/292695i8BA7FDDF6ED7CDC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="acad.PNG" alt="acad.PNG" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 20:45:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6687001#M126539</guid>
      <dc:creator>ntsaousoglou</dc:creator>
      <dc:date>2016-11-14T20:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Print multiple sheets from Model Space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6687187#M126540</link>
      <description>&lt;P&gt;I know it's only a picture, but are those maybe polylines representing the sheet border and maybe on a unique layer, or maybe border blocks? &amp;nbsp;Either way I think we can help you out quite a bit.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 22:37:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6687187#M126540</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2016-11-14T22:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Print multiple sheets from Model Space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6687691#M126541</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564264"&gt;@pbejse&lt;/a&gt; wrote:&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Interesting &amp;nbsp;--&amp;gt; (defun &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Kill&lt;/STRONG&gt; &lt;/FONT&gt;...--&amp;gt; &amp;nbsp;(kill "PDFCreator.exe")&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the only way to close pdfcreator, kill the process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With WMI, we can do several things.&lt;BR /&gt;An example as a gift. Autocad which says hello every launch. Lisp to be integrated at startup&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:qui(/ meth1 meth2 ok sapi wmi)
  (or (vl-bb-ref 'Patrick_35_Hello)
    (progn
      (setq WMI   (vlax-create-object "WbemScripting.SWbemLocator")
	    meth1 (vlax-invoke WMI 'ConnectServer nil nil nil nil nil nil nil nil)
	    meth2 (vlax-invoke meth1 'ExecQuery "Select * from Win32_ComputerSystem")
	    sapi  (vlax-create-object "Sapi.SpVoice")
      )
      (and (setq ok (vlax-get (vlax-invoke meth2 'itemindex 0) 'username))
	(vlax-invoke sapi "Speak" (strcat "Hello " (vl-string-subst " " "." (substr ok (+ (vl-string-search "\\" ok) 2)))) 0)
      )
      (mapcar 'vlax-release-object (list meth2 meth1 WMI sapi))
      (vl-bb-set 'Patrick_35_Hello T)
    )
  )
  (princ)
)

(c:qui)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Turn on the loudspeaker&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@+&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 07:26:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6687691#M126541</guid>
      <dc:creator>patrick_35</dc:creator>
      <dc:date>2016-11-15T07:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Print multiple sheets from Model Space</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6687695#M126542</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If frames are blocks, the lisp I gave and made for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@+&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 07:20:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/print-multiple-sheets-from-model-space/m-p/6687695#M126542</guid>
      <dc:creator>patrick_35</dc:creator>
      <dc:date>2016-11-15T07:20:01Z</dc:date>
    </item>
  </channel>
</rss>

