<?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: LISP help in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808450#M138867</link>
    <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the only way i will start understand what is the issue is by seeing your drawing, can you post it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 18:55:42 GMT</pubDate>
    <dc:creator>Moshe-A</dc:creator>
    <dc:date>2019-05-22T18:55:42Z</dc:date>
    <item>
      <title>LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8805381#M138858</link>
      <description>&lt;P&gt;I through together a lisp using a few others that is intended to use CleanScreen and get rid of the command line and a few others to go to a full screen of sorts. I also wanted it to zoom all layouts to all (except model to extents). The zoom doesn't seem to work quite the way I want and forces me to use the zoom all on all layouts again afterward. It's as if it is zooming before the interface is cleared all the way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the LISP so far:&lt;/P&gt;
&lt;PRE&gt;   (defun c:fw nil (c:FullScreenMode))
(defun c:FullScreenMode ()
  (command "_CleanScreenOn")
  (command "commandlinehide")
  (setvar 'layouttab 0)
  (setvar 'menubar 0)

  (foreach lay (layoutlist)
    (setvar 'ctab lay)
    (command "_.pspace" "_.zoom" "_all")
  ); end foreach
  (setvar 'ctab "Model")
  (command "_.zoom" "_extents")

  (setvar 'ctab (cadr (member (getvar 'ctab) (append '("Model") (:LayoutsRealOrder) '("Model")))))
  
  (princ)
  )

   (defun c:fwq nil (c:FullScreenModeOff))
(defun c:FullScreenModeOff ()
  (command "_CleanScreenOff")
  (command "commandline")
  (setvar 'layouttab 1)
  (setvar 'menubar 1)

  (foreach lay (layoutlist)
    (setvar 'ctab lay)
    (command "_.pspace" "_.zoom" "_all")
  ); end foreach
  (setvar 'ctab "Model")
  (command "_.zoom" "_extents")

  (setvar 'ctab (cadr (member (getvar 'ctab) (append '("Model") (:LayoutsRealOrder) '("Model")))))

  (princ)
  )&lt;/PRE&gt;
&lt;P&gt;Any ideas would be much appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 17:28:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8805381#M138858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-21T17:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8805741#M138859</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the code is good and works if you disable the last code line (in each function) i turn it into red.&lt;/P&gt;
&lt;P&gt;(:layoutRealOrder) it looks like you have a missing function here.&lt;/P&gt;
&lt;P&gt;anyhow this line is suppose to restore the current layout (that was before calling the command), with out it you will be left in model space, also good&amp;nbsp;&lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://forums.autodesk.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&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;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;PRE&gt;   (defun c:fw nil (c:FullScreenMode))
(defun c:FullScreenMode ()
  (command "_CleanScreenOn")
  (command "commandlinehide")
  (setvar 'layouttab 0)
  (setvar 'menubar 0)

  (foreach lay (layoutlist)
    (setvar 'ctab lay)
    (command "_.pspace" "_.zoom" "_all")
  ); end foreach
  (setvar 'ctab "Model")
  (command "_.zoom" "_extents")

  &lt;FONT color="#FF0000"&gt;; (setvar 'ctab (cadr (member (getvar 'ctab) (append '("Model") (:LayoutsRealOrder) '("Model")))))&lt;/FONT&gt;
  
  (princ)
  )

   (defun c:fwq nil (c:FullScreenModeOff))
(defun c:FullScreenModeOff ()
  (command "_CleanScreenOff")
  (command "commandline")
  (setvar 'layouttab 1)
  (setvar 'menubar 1)

  (foreach lay (layoutlist)
    (setvar 'ctab lay)
    (command "_.pspace" "_.zoom" "_all")
  ); end foreach
  (setvar 'ctab "Model")
  (command "_.zoom" "_extents")

  ; &lt;FONT color="#FF0000"&gt;(setvar 'ctab (cadr (member (getvar 'ctab) (append '("Model") (:LayoutsRealOrder) '("Model")))))&lt;/FONT&gt;

  (princ)
  )&lt;/PRE&gt;
&lt;P&gt;Any ideas would be much appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 19:53:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8805741#M138859</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-05-21T19:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8805888#M138860</link>
      <description>&lt;P&gt;Ah yes, so that part was missing this:&lt;/P&gt;
&lt;PRE&gt;   (vl-load-com)

; pbejse https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layout-order/td-p/3749964
(defun :LayoutsRealOrder (/ order)
  (vlax-for lay (vla-get-layouts (vla-get-ActiveDocument (vlax-get-acad-object)))
    (setq order (cons (list (vla-get-name lay)
                            (vla-get-taborder lay))
                      order)))
  (mapcar 'car (cdr (vl-sort order '(lambda (j k) (&amp;lt; (cadr j) (cadr k)))))))&lt;/PRE&gt;
&lt;P&gt;And for me that part was working fine. Everything but the proper zoom was working. It looks as though it zooms each layout to all BEFORE doing the CleanScreen and turning off bars and such. and then when the command is complete the layout is not quite zoomed completely. I apologize that I am not able to get a screencast(I worked with my IT for days trying to get permission, to no avail).&lt;/P&gt;
&lt;P&gt;The best I could do in stead of a screencast is a screenshot of how the layouts look when lisp is finished, and how they should look after a "Zoom" All".&lt;/P&gt;
&lt;P&gt;Anyway, thanks for your reply! It's obviously not a dire situation, but it would be a handy tool for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 21:14:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8805888#M138860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-21T21:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8806509#M138861</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i do not understand what is wrong with zoom and i do not see the difference between the 2 images.&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 05:36:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8806509#M138861</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-05-22T05:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8807808#M138862</link>
      <description>&lt;P&gt;Ah, fair enough. Again, sorry I can't show a screencast. I can't even open the images I attached, except for from my computer. It is certainly different on my screen. It really just seems like the order of operations is a little off in the LISP and I wonder if there is a way to specify which actions happen first in a program.&lt;/P&gt;
&lt;P&gt;Anyway, thanks for taking a look! &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Michael&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 15:08:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8807808#M138862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T15:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808029#M138863</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;It really just seems like the order of operations is a little off in the LISP and I wonder if there is a way to specify which actions happen first in a program.&lt;P class="1558542168514"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="1558542168514"&gt;&lt;FONT color="#0000FF"&gt;detail the order you seek&lt;/FONT&gt;&lt;/P&gt;&lt;P class="1558542168514"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;moshe&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 16:23:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808029#M138863</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-05-22T16:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808063#M138864</link>
      <description>&lt;P&gt;Oh well, I want the interface disabling ones first:&lt;/P&gt;&lt;PRE&gt;(command "_CleanScreenOn")
  (command "commandlinehide")
  (setvar 'layouttab 0)
  (setvar 'menubar 0)
  (setvar 'statusbar 0)&lt;/PRE&gt;&lt;P&gt;And then the zoom program:&lt;/P&gt;&lt;PRE&gt;(foreach lay (layoutlist)
  (setvar 'ctab lay)
  (command "_.pspace" "_.zoom" "_all")
  ); end foreach
  (setvar 'ctab "Model")
  (command "_.zoom" "_extents")&lt;/PRE&gt;&lt;P&gt;And then making first layout current:&lt;/P&gt;&lt;PRE&gt;(command ".layout" "set" "model")

  (setvar 'ctab (cadr (member (getvar 'ctab) (append '("Model") (:LayoutsRealOrder) '("Model")))))
  
  (princ)
  )

(vl-load-com)

; pbejse https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layout-order/td-p/3749964
(defun :LayoutsRealOrder (/ order)
  (vlax-for lay (vla-get-layouts (vla-get-ActiveDocument (vlax-get-acad-object)))
    (setq order (cons (list (vla-get-name lay)
                            (vla-get-taborder lay))
                      order)))
  (mapcar 'car (cdr (vl-sort order '(lambda (j k) (&amp;lt; (cadr j) (cadr k)))))))&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Michael&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 16:37:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808063#M138864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T16:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808078#M138865</link>
      <description>&lt;P&gt;so what is the different between your new code and the previous?&lt;/P&gt;&lt;P&gt;still do not understand what is wrong here?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 16:43:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808078#M138865</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-05-22T16:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808396#M138866</link>
      <description>&lt;P&gt;I changed nothing because I didn't know what to change. I just know that the final outcome does not give me the zoom that I want and it appears that it is zooming before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current solution is to isolate the "CleanScreen" etc. part of the lisp and then just use two lisp commands to get what I need; one that cleans up and one that zooms all and sets the current layout. I separated them and used the "zoom lisp"&amp;nbsp; and then used the "cleanscreen lisp" separately and it gave me the same, non-ideally zoomed outcome. I want it to "clean" and then "zoom".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, going to keep looking around. It's not a huge issue, just trying to combine two lisps into one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 18:34:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808396#M138866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T18:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808450#M138867</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the only way i will start understand what is the issue is by seeing your drawing, can you post it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 18:55:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808450#M138867</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-05-22T18:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808473#M138868</link>
      <description>&lt;P&gt;Sure, here it is!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Michael&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 19:04:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808473#M138868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T19:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808480#M138869</link>
      <description>&lt;P&gt;Running the LISP and then doing a "Zoom" "All" should show you what I want it to show. But, at least for me, that is not what happens. It is zoomed all crooked-like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 19:05:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8808480#M138869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T19:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8812426#M138870</link>
      <description>&lt;P&gt;This the code I was able to achieve the best results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  (command "commandlinehide")
  (command "filetabclose")
  (command "ribbonclose")
  (setvar 'statusbar 0)
  (setvar 'layouttab 0)
  (setvar 'menubar 0)

  (foreach lay (layoutlist)
    (setvar 'ctab lay)
    (command "_.pspace")
    )
  
  (foreach lay (layoutlist)
    (setvar 'ctab lay)
    (command "_.zoom" "_extents")
    )
  
  (setvar 'ctab "Model")
  (command "_.zoom" "_extents")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally, don't like the CleanScreen command very much...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also try a setting of LAYOUTREGENCTL if that makes any effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 09:14:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8812426#M138870</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-05-24T09:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8813577#M138871</link>
      <description>&lt;P&gt;Well, this works great with the zooming, although it doesn't hide my toolbars(I don't really use the ribbon) without cleanscreen. I wonder if there is a way to hide them without messing up their position when showing them again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, the prompt for pressing "ENTER" to continue works great too. Out of curiosity, what don't you like about the CleanScreen command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 17:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8813577#M138871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T17:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: LISP help</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8813833#M138872</link>
      <description>&lt;P&gt;Wow, so it looks like "CleanScreen" was screwing with things all along. I removed it to try it out, inspired by your distaste for it, and here is what I came up with (I also added the hiding/showing of toolbars and filetabs, since cleanscreen was taking care of those:&lt;/P&gt;&lt;PRE&gt;;;;Custom Fullscreen ON
     (defun c:fw nil (c:FullScreenMode))
(defun c:FullScreenMode ()

  (command "commandlinehide")
  (setvar 'layouttab 0)
  (setvar 'menubar 0)
  (setvar 'statusbar 0)
  (command "filetabclose")
  (command "-toolbar" "michael" "hide")
  (c:ZoomAllandMakeFirstLayoutCurrent)
    
  (princ)
  );defun

;;;Custom Fullscreen Off
  (defun c:wf nil (c:FullScreenModeOff))
(defun c:FullScreenModeOff ()
  
  (command "commandline")
  (command "filetab")
  (setvar 'layouttab 1)
  (setvar 'menubar 1)
  (setvar 'statusbar 1)
  (command "filetab")
  (command "-toolbar" "michael" "show")
  (c:ZoomAllandMakeFirstLayoutCurrent)

  (princ)
 ); end defun

(vl-load-com)

; pbejse https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layout-order/td-p/3749964
(defun :LayoutsRealOrder (/ order)
  (vlax-for lay (vla-get-layouts (vla-get-ActiveDocument (vlax-get-acad-object)))
    (setq order (cons (list (vla-get-name lay)
                            (vla-get-taborder lay))
                      order)))
  (mapcar 'car (cdr (vl-sort order '(lambda (j k) (&amp;lt; (cadr j) (cadr k)))))))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Edit* Here is the "(c:ZoomAllandMakeFirstLayoutCurrent)" part.&lt;/P&gt;&lt;PRE&gt;(defun c:ZoomAllandMakeFirstLayoutCurrent ()
    (foreach lay (layoutlist)
    (setvar 'ctab lay)
    (command "_.pspace" "_.zoom" "_all"))
  (setvar 'ctab "Model")
  (command "_.zoom" "_extents")
(command ".layout" "set" "model")
  (setvar 'ctab (cadr (member (getvar 'ctab) (append '("Model") (:LayoutsRealOrder) '("Model")))))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Michael&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 19:30:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-help/m-p/8813833#M138872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T19:30:43Z</dc:date>
    </item>
  </channel>
</rss>

