<?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: MODEL SPACE VIEWPORT in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/model-space-viewport/m-p/7505315#M204835</link>
    <description>&lt;P&gt;Not even&amp;nbsp;sure why this still works (its only 22 years old).&amp;nbsp; I'm sure someone over in the &lt;A href=";;;   TagArea.LSP ;;;   Copyright (C) 1996, 1998, 2000, 2003  &amp;quot;Falcon Design Services&amp;quot; ;;;   Permission to use, copy, modify, and distribute this software ;;;   for any purpose and without fee is hereby granted, provided ;;;   that the above copyright notice appears in all copies and that ;;;   both that copyright notice and this permission notice appear in ;;;   all supporting documentation. ;;; ;;;   THIS SOFTWARE IS PROVIDED &amp;quot;AS IS&amp;quot; WITHOUT EXPRESS OR IMPLIED ;;;   WARRANTY.  ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR ;;;   PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED. ;;; ;;;    Permission to reuse, share, post, copy, borrow, steal,  ;;;    or generally do with it whatever you wish is hereby granted. ;;;    Like that would make a lot of difference anyway. ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" target="_blank"&gt;LISP forum&lt;/A&gt; could modernize it considerably.&amp;nbsp; &amp;nbsp;Load it, then enter the command VPSWAP pick a viewport that's not current that you want to swap, then pick the other viewport you want to swap and the two views swap viewports.&amp;nbsp; I use it to swap a view in a smaller viewport to a larger viewport, check screencast below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;;;;   VPSwap.LSP
;;;   Copyright (C) 1995 "Falcon Design Services"
;;;
;;;   THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED
;;;   WARRANTY.  ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR
;;;   PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.
;;;
;;;   Permission to reuse, share, post, copy, borrow, steal, 
;;;   or generally do with it whatever you wish is hereby granted.
;;;   Like that would make a lot of difference anyway.
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun c:VPSwap ()
(command-s ".undo" "begin")
(if
  (= (getvar "cvport") 1)
   (command-s "_mspace")
)
(command-s "_view" "_d" "vpswap*")            ;;;;Delete any existing vport views

(prompt "\nSelect a DIFFERENT viewport")    ;;;;Get the first viewport
(dvt:rm:cvpc)                               ;;;;Viewport select tool;; subroutine below
(setq vprt01 (getvar "cvport"))             ;;;;Get viewport setvar
(command-s "_view" "_S" "vpswap01")           ;;;;Save the view of that viewport

(prompt "\nSelect another viewport")        ;;;;Get the second viewport
(dvt:rm:cvpc)                               ;;;;Viewport select tool;; subroutine below
(setq vprt02 (getvar "cvport"))             ;;;;Get viewport setvar
(command-s "_view" "_S" "vpswap02")           ;;;;Save the view of that viewport

(setvar "cvport" vprt01)                    ;;;;Set first viewport 
(command-s "_view" "r" "vpswap02")            ;;;;Restore Second View

(setvar "cvport" vprt02)                    ;;;;Set second viewport 
(command-s "_view" "r" "vpswap01")            ;;;;Restore first View

(command-s "_view" "_d" "vpswap*")            ;;;;Delete any existing vport views
(command-s ".undo" "end")
(princ)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;------------------------------------------------------------------
(defun dvt:rm:cvpc ( / grrd weida p pold viewsize trigger)
   (setq weida T viewsize (getvar "VIEWSIZE")
         trigger (* viewsize 0.4)) ; adjust factor according to mouse speed etc
   (while weida
      (setq grrd (grread T )) ;(+ 1 2 4 8) 2
      (cond
         ((= 5 (car grrd))
            (setq p (cadr grrd))
            (cond
               ((and pold (&amp;gt; (distance p pold) trigger))
                  (setq weida nil)
               )
            )
            (setq pold p)
         )
         ((= 2 (car grrd))(setq weida nil))
         (T nil
         )
      )
   )
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="1b674740-a9f2-4529-8f93-16947ee98b42" class="myscreencast-iframe iframe-container active-myscreencast"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1b674740-a9f2-4529-8f93-16947ee98b42" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" style="display: inline;"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 31 Oct 2017 15:52:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-31T15:52:12Z</dc:date>
    <item>
      <title>MODEL SPACE VIEWPORT</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/model-space-viewport/m-p/7504411#M204832</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a query regarding autocad viewport in the Model Space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose when working in Model space i split the space into 4 viewports .&lt;/P&gt;&lt;P&gt;All viewports show same elements in each view.&lt;/P&gt;&lt;P&gt;My Question is&lt;/P&gt;&lt;P&gt;if there is plan ,front elevation,section and specification in the dwg.(all viewports show all -&lt;SPAN&gt;plan ,front elevation and section and specification)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;STRONG&gt;now&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by zoom/PAN options i set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;top left&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;viewport showing just front elevation&lt;/P&gt;&lt;P&gt;2) the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bottom left&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;i set to plan view&lt;/P&gt;&lt;P&gt;3) then in top right i keep the section&lt;/P&gt;&lt;P&gt;4) and at bottom right i keep specification&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now all set.I WANT TO COPY THE VIEW&amp;nbsp;AT&amp;nbsp;&lt;STRONG&gt;top left IN THE&amp;nbsp;&lt;SPAN&gt;bottom right ,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;how can i do that in a single command&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;(i can use the zoom in &amp;amp; zoom out,etc zoom options) But is there some command to copy the view from 1st divided vieports to some&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;another viewport of the 4 viewport i spilted.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;It is available in microstation (that one window view can be copied on to another window view)if have ever got to use microstation,it is a quite useful command(COPY VIEW)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;I wonder is there any such command in Autocad,if not there why havent there programmers made some command of same sort.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Solution on the above mentioned question is eagerly awaited,please be helpful to share the solution.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/STRONG&gt;&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>Tue, 31 Oct 2017 11:34:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/model-space-viewport/m-p/7504411#M204832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-31T11:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: MODEL SPACE VIEWPORT</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/model-space-viewport/m-p/7504482#M204833</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; I wonder is there any such command in Autocad&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;you can use command &lt;STRONG&gt;&lt;FONT color="#000080"&gt;_VIEW&lt;/FONT&gt;&lt;/STRONG&gt; and save the viewport settings as a named view ... that can then be restored on any other position.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&amp;gt;&amp;gt; if not there why havent there programmers made some command of same sort.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;E.g. because I never change the view/orientation of two viewports (from upper left to lower right). &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But you can use all API's or menu macros to create your own commands ... or leave a feedback with your wish &lt;A href="https://www.autodesk.com/company/contact-us/product-feedback" target="_blank"&gt;&amp;gt;&amp;gt;&amp;gt;here&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 12:03:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/model-space-viewport/m-p/7504482#M204833</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2017-10-31T12:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: MODEL SPACE VIEWPORT</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/model-space-viewport/m-p/7504499#M204834</link>
      <description>&lt;P&gt;on the Ribbon look for the view tab, select the pull down option for Viewport configuration. select the option 4 equal.&lt;/P&gt;
&lt;P&gt;go into the top left viewport and click on the (+) sign and select viewport configuration list at the bottom of the pop up window select Configure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="viewport config.PNG" style="width: 187px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/419861iD9DA6431BEFC6AF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="viewport config.PNG" alt="viewport config.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;change the setup for the first viewport to 3d, change the view type to&amp;nbsp; FRONT repeat steps for each viewport to change them independantly.&lt;/P&gt;
&lt;P&gt;save the setup as needed then you can call it back later&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Viewport set ups.PNG" style="width: 602px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/419863iC8945E8A07F89B1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Viewport set ups.PNG" alt="Viewport set ups.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 12:08:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/model-space-viewport/m-p/7504499#M204834</guid>
      <dc:creator>kadmonkee</dc:creator>
      <dc:date>2017-10-31T12:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: MODEL SPACE VIEWPORT</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/model-space-viewport/m-p/7505315#M204835</link>
      <description>&lt;P&gt;Not even&amp;nbsp;sure why this still works (its only 22 years old).&amp;nbsp; I'm sure someone over in the &lt;A href=";;;   TagArea.LSP ;;;   Copyright (C) 1996, 1998, 2000, 2003  &amp;quot;Falcon Design Services&amp;quot; ;;;   Permission to use, copy, modify, and distribute this software ;;;   for any purpose and without fee is hereby granted, provided ;;;   that the above copyright notice appears in all copies and that ;;;   both that copyright notice and this permission notice appear in ;;;   all supporting documentation. ;;; ;;;   THIS SOFTWARE IS PROVIDED &amp;quot;AS IS&amp;quot; WITHOUT EXPRESS OR IMPLIED ;;;   WARRANTY.  ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR ;;;   PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED. ;;; ;;;    Permission to reuse, share, post, copy, borrow, steal,  ;;;    or generally do with it whatever you wish is hereby granted. ;;;    Like that would make a lot of difference anyway. ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" target="_blank"&gt;LISP forum&lt;/A&gt; could modernize it considerably.&amp;nbsp; &amp;nbsp;Load it, then enter the command VPSWAP pick a viewport that's not current that you want to swap, then pick the other viewport you want to swap and the two views swap viewports.&amp;nbsp; I use it to swap a view in a smaller viewport to a larger viewport, check screencast below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;;;;   VPSwap.LSP
;;;   Copyright (C) 1995 "Falcon Design Services"
;;;
;;;   THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED
;;;   WARRANTY.  ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR
;;;   PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.
;;;
;;;   Permission to reuse, share, post, copy, borrow, steal, 
;;;   or generally do with it whatever you wish is hereby granted.
;;;   Like that would make a lot of difference anyway.
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun c:VPSwap ()
(command-s ".undo" "begin")
(if
  (= (getvar "cvport") 1)
   (command-s "_mspace")
)
(command-s "_view" "_d" "vpswap*")            ;;;;Delete any existing vport views

(prompt "\nSelect a DIFFERENT viewport")    ;;;;Get the first viewport
(dvt:rm:cvpc)                               ;;;;Viewport select tool;; subroutine below
(setq vprt01 (getvar "cvport"))             ;;;;Get viewport setvar
(command-s "_view" "_S" "vpswap01")           ;;;;Save the view of that viewport

(prompt "\nSelect another viewport")        ;;;;Get the second viewport
(dvt:rm:cvpc)                               ;;;;Viewport select tool;; subroutine below
(setq vprt02 (getvar "cvport"))             ;;;;Get viewport setvar
(command-s "_view" "_S" "vpswap02")           ;;;;Save the view of that viewport

(setvar "cvport" vprt01)                    ;;;;Set first viewport 
(command-s "_view" "r" "vpswap02")            ;;;;Restore Second View

(setvar "cvport" vprt02)                    ;;;;Set second viewport 
(command-s "_view" "r" "vpswap01")            ;;;;Restore first View

(command-s "_view" "_d" "vpswap*")            ;;;;Delete any existing vport views
(command-s ".undo" "end")
(princ)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;------------------------------------------------------------------
(defun dvt:rm:cvpc ( / grrd weida p pold viewsize trigger)
   (setq weida T viewsize (getvar "VIEWSIZE")
         trigger (* viewsize 0.4)) ; adjust factor according to mouse speed etc
   (while weida
      (setq grrd (grread T )) ;(+ 1 2 4 8) 2
      (cond
         ((= 5 (car grrd))
            (setq p (cadr grrd))
            (cond
               ((and pold (&amp;gt; (distance p pold) trigger))
                  (setq weida nil)
               )
            )
            (setq pold p)
         )
         ((= 2 (car grrd))(setq weida nil))
         (T nil
         )
      )
   )
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="1b674740-a9f2-4529-8f93-16947ee98b42" class="myscreencast-iframe iframe-container active-myscreencast"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/1b674740-a9f2-4529-8f93-16947ee98b42" width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" style="display: inline;"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Oct 2017 15:52:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/model-space-viewport/m-p/7505315#M204835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-31T15:52:12Z</dc:date>
    </item>
  </channel>
</rss>

