<?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: Override key to Pan in a Locked Viewport (Temporarly unlock+pan) in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553343#M261825</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/569689"&gt;@RobDraw&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I tell people to never pan in a viewport. It's just too easy to change the scale while pressing&amp;nbsp;the wheel. Adjusting the&amp;nbsp;viewport instead of the view&amp;nbsp;is just so easy. (Who really cares about a couple of&amp;nbsp;clicks?)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can't argue on this!&lt;BR /&gt;Humm well I could say that my "ZOOMFACTOR" is so hard that I can't miss the change of the scale if it ever happens...&lt;BR /&gt;Could also buy a decent computer mouse (mice?) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2016 18:13:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-09T18:13:52Z</dc:date>
    <item>
      <title>Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6550271#M261816</link>
      <description>&lt;P&gt;Hi, I&amp;nbsp;know all the possible ways to lock or unlock viewport but what I'm not able to create is a macro or an override key&amp;nbsp;to let me "Pan" the view of initially locked Viewport.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say I worked on an existing detail in model space.&lt;/P&gt;&lt;P&gt;Then I know I will have to adjust the viewport by panning (no scale change) a little bit to see the detail entirely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Normally I would select or get in the viewport, then unlock, then pan, then relock, &amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&lt;STRIKE&gt;&lt;SPAN style="line-height: 15px;"&gt;( then get out the viewport, then zoom extend in paperspace, then get back to modelspace ( ...&amp;nbsp;I got a LISP that get these final steps done ) )&lt;/SPAN&gt;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Now, and to have&amp;nbsp;dreamed about this since at least 10 years, I would like to do this :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 15px;"&gt;Double-click to get in the locked viewport,&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="line-height: 15px;"&gt;&lt;STRONG&gt;SHIFT + MIDDLE MOUSE BUTTON to let me PAN freely, release keys to be back to a locked viewport.&lt;/STRONG&gt; &lt;STRIKE&gt;(My problem if I accidently&amp;nbsp;f_ckedup the scale by rolling (zooming) the middle mouse button)&lt;/STRIKE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wonder if it's clear?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If impossible, a LISP to lock or unlock the viewport ( if = locked &amp;nbsp;-&amp;gt; unlock, if = unlocked &amp;nbsp;-&amp;gt; Lock) &amp;nbsp;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 16:56:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6550271#M261816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-08T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6550411#M261817</link>
      <description>Any reason you cannot just simply resize the locked viewport, outside of the viewport, and move it when you are done encompassing the larger detail? That's the simplest fix ever.&lt;BR /&gt;&lt;BR /&gt;LISP forum is over there is you want help writing code &lt;A href="http://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1" target="_blank"&gt;http://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1&lt;/A&gt;</description>
      <pubDate>Thu, 08 Sep 2016 17:40:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6550411#M261817</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2016-09-08T17:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6550594#M261818</link>
      <description>&lt;P&gt;Thank you for you answer, 100% right, but this needs a couple more clicks/risks that I would like to avoid:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stretching the viewport (at least one time, maybe more)&lt;/P&gt;&lt;P&gt;Move the viewport &lt;SPAN&gt;(at least one time, maybe more)&amp;nbsp;&lt;/SPAN&gt;(And I always forget I can override OSNAP and POLAR/ORTHO to get it the first time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see my Override project to help in a couple of other situations...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which can be a viewport that fit the frame you have for printing, perfectly, that you need to reposition the view (needs to unlock, pan and relock)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wich can be I just drawn a new variant of a detail next to the original in modelspace and I need to create a viewport for it. Let's say I would choose to copy the locked&amp;nbsp;viewport of the original detail next to it and then&amp;nbsp;Unlock the VP, pan to the new detail and relock or more messing arround and&amp;nbsp;Stretch the viewport to get to see the detail,&amp;nbsp;Re-Stretch the viewport to fit the detail one side and re-stretch final to fit the other side, move the VP to it's place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wich can be the same but for more views copied from the first locked one... Would need to select multiple viewports then call up Properties or QuickProp tool, go to display lock to unlock, panning every view to satisfaction, reselect all VP, re-call Properties to lock all VP...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Etc..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.... How much times a day I am missing the Lock/Unlock taskbar button and bring up the "Scale list" or the "Add scale to annotative...." ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well anyway... if it's not possible to temporarly override the lock state of the VP while in it, to pan, I think i'll at least find a way to a LISP that would Lock or Unlock the current active VP with a keyboard command alias... I'm at this point!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 18:39:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6550594#M261818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-08T18:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6550760#M261819</link>
      <description>&lt;P&gt;Try this LISP. Your imaginary workflow would be awesome, but this is not the&amp;nbsp;case. With this routine you need to double click VP, run command LPAN (could be assigned Keyboard Shortcut, or F* key), finish PAN by hitting ENTER or ESC, double click to leave VP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;(defun c:ActiveVPLock ( / vpa vpm )
  (setq vpa (vla-get-ActivePViewport (vlax-get-property (vlax-get-acad-object) "ActiveDocument"))
	vpm (vla-get-DisplayLocked vpa))
  (if (equal :vlax-true vpm)
    (vla-put-DisplayLocked vpa :vlax-false)))

(defun c:ActiveVPUnlock ( / vpa vpm)
  (setq vpa (vla-get-ActivePViewport (vlax-get-property (vlax-get-acad-object) "ActiveDocument"))
	vpm (vla-get-DisplayLocked vpa))
  (if (equal :vlax-false vpm)
    (vla-put-DisplayLocked vpa :vlax-true))
  (princ)
  )


(defun c:LPAN ( / *error*)

  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (c:ActiveVPUnLock)
    (princ))
  
  (c:ActiveVPLock)
  (initcommandversion)
  (command "_.PAN")
  (while (&amp;gt; (getvar 'CMDACTIVE) 0) (command PAUSE))
  (c:ActiveVPUnLock)
  (princ)
)&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;BTW very good routines for VP lock/unlock are on theswamp.org&amp;nbsp;&lt;A href="http://www.theswamp.org/index.php?topic=7097.0" target="_self"&gt;HERE&lt;/A&gt;&amp;nbsp;(free registration required). Color framing is very good visual control /red - locked, green unlocked...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT:&amp;nbsp;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN class=""&gt;you're used&lt;/SPAN&gt; &lt;SPAN class=""&gt;to PAN with holding&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;the wheel, this modification might fit you better.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;(defun c:ActiveVPLock ( / vpa vpm )
  (setq vpa (vla-get-ActivePViewport (vlax-get-property (vlax-get-acad-object) "ActiveDocument"))
	vpm (vla-get-DisplayLocked vpa))
  (if (equal :vlax-true vpm)
    (vla-put-DisplayLocked vpa :vlax-false)))

(defun c:ActiveVPUnlock ( / vpa vpm)
  (setq vpa (vla-get-ActivePViewport (vlax-get-property (vlax-get-acad-object) "ActiveDocument"))
	vpm (vla-get-DisplayLocked vpa))
  (if (equal :vlax-false vpm)
    (vla-put-DisplayLocked vpa :vlax-true))
  (princ)
  )


(defun c:LPAN ( / *error*)

  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (c:ActiveVPUnLock)
    (princ))
  (c:ActiveVPLock)
  (getkword "\nHit ENTER when you're finished with PAN &amp;lt;finished&amp;gt;: ")
  (c:ActiveVPUnLock)
  (princ)
)&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Thu, 08 Sep 2016 19:36:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6550760#M261819</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2016-09-08T19:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6550796#M261820</link>
      <description>&lt;P&gt;Yess great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Halfway to my imaginary workflow !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll play with it and i'll take a look at the swamp too, thank you!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 19:46:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6550796#M261820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-08T19:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6552995#M261821</link>
      <description>&lt;P&gt;If you succeed finding a free hotkey combination, you can also use the CUI command (keyboard shortcuts) and assign the following modified "unLock" macro (&lt;STRONG&gt;AVPuL&lt;/STRONG&gt;) to a "button down" event (or to a separate hotkey) and a "restore" macro (&lt;STRONG&gt;AVPre&lt;/STRONG&gt;) to a "button up" event (or a second hotkey):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:AVPuL ( / vpa vpm)
  (setq vpa (vla-get-ActivePViewport (vlax-get-property (vlax-get-acad-object) "ActiveDocument"))
		vpm (vla-get-DisplayLocked vpa))
  (if (equal :vlax-true vpm)(progn
   (princ " &amp;lt;unlock&amp;gt; ")
   (vla-put-DisplayLocked vpa :vlax-false)
   (setq _AVPL T)
  ))
  (princ)
)

(defun c:AVPre ( / vpa vpm)
  (setq vpa (vla-get-ActivePViewport (vlax-get-property (vlax-get-acad-object) "ActiveDocument"))
		vpm (vla-get-DisplayLocked vpa))
  (if (and _AVPL (equal :vlax-false vpm))(progn
   (princ " &amp;lt;relock&amp;gt; ")
   (vla-put-DisplayLocked vpa :vlax-true)
   (setq _AVPL nil)
  ))
  (princ)
)
&lt;/PRE&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz" target="_blank"&gt;www.cadstudio.cz&lt;/A&gt; &amp;nbsp;&lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 16:12:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6552995#M261821</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2016-09-09T16:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553123#M261822</link>
      <description>&lt;P&gt;I tell people to never pan in a viewport. It's just too easy to change the scale while pressing&amp;nbsp;the wheel. Adjusting the&amp;nbsp;viewport instead of the view&amp;nbsp;is just so easy. (Who really cares about a couple of&amp;nbsp;clicks?)&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 16:47:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553123#M261822</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2016-09-09T16:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553202#M261823</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;what I'm not able to create is a macro or an override key&amp;nbsp;to let me "Pan" the view of initially locked Viewport.&amp;nbsp;....&amp;nbsp;&lt;STRIKE&gt;(My problem if I accidently&amp;nbsp;f_ckedup the scale by rolling (zooming) the middle mouse button) ....&lt;/STRIKE&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This may not do &lt;EM&gt;everything&lt;/EM&gt; you envision, but see what you think:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun C:PanV (/ vp vpData vpID vpObj vpLocked)&lt;FONT color="#3366FF"&gt;; = &lt;STRONG&gt;PAN&lt;/STRONG&gt; in a &lt;STRONG&gt;V&lt;/STRONG&gt;iewport &lt;EM&gt;[whether locked or not]&lt;/EM&gt;&lt;/FONT&gt;
  (if (= (getvar 'tilemode) 0)
    (progn &lt;FONT color="#3366FF"&gt;; then -- proceed&lt;/FONT&gt;
      (command "_.pspace")&lt;FONT color="#3366FF"&gt;; start there&lt;/FONT&gt;
      (if
        (and
          (setq vp (car (entsel "\nSelect Viewport to Pan in: ")))&lt;FONT color="#3366FF"&gt;; picked something&lt;/FONT&gt;
          (setq vpData (entget vp))
          (member '(0 . "VIEWPORT") vpData)&lt;FONT color="#3366FF"&gt;; picked the right kind of thing&lt;/FONT&gt;
        )&lt;FONT color="#999999"&gt;; and&lt;/FONT&gt;
        (progn &lt;FONT color="#3366FF"&gt;; then -- proceed&lt;/FONT&gt;
          (setq
            vpID (cdr (assoc 69 vpData))&lt;FONT color="#3366FF"&gt;; [doesn't seem to be in VLA Properties]&lt;/FONT&gt;
            vpObj (vlax-ename-&amp;gt;vla-object vp)
            vpLocked (= (vlax-get vpObj 'DisplayLocked) -1)&lt;FONT color="#3366FF"&gt;; T or nil&lt;/FONT&gt;
          )&lt;FONT color="#999999"&gt;; setq&lt;/FONT&gt;
          (command "_.mspace")&lt;FONT color="#3366FF"&gt;; get into Model Space,&lt;/FONT&gt;
          (setvar 'cvport vpID)&lt;FONT color="#3366FF"&gt;; and force into that Viewport&lt;/FONT&gt;
          (if vpLocked (vlax-put vpObj 'DisplayLocked 0))&lt;FONT color="#3366FF"&gt;; unlock if necessary&lt;/FONT&gt;
          (command "_.pan" pause pause)
          (if vpLocked (vlax-put vpObj 'DisplayLocked -1))&lt;FONT color="#3366FF"&gt;; relock if originally locked&lt;/FONT&gt;
          (command "_.pspace")
        )&lt;FONT color="#999999"&gt;; progn -- then [selected a Viewport]&lt;/FONT&gt;
        (alert "\nNothing selected, or not a Viewport.")&lt;FONT color="#3366FF"&gt;; else&lt;/FONT&gt;
      )&lt;FONT color="#999999"&gt;; if [selected a Viewport or not]&lt;/FONT&gt;
    )&lt;FONT color="#999999"&gt;; progn -- then [in a Layout]&lt;/FONT&gt;
    (alert "You must be in a Paper Space Layout, not in the Model tab.")&lt;FONT color="#3366FF"&gt;; else&lt;/FONT&gt;
  )&lt;FONT color="#999999"&gt;; if [in a Layout or not]&lt;/FONT&gt;
)&lt;FONT color="#999999"&gt;; defun&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;One difference is that you select the Viewport by &lt;EM&gt;picking its boundary&lt;/EM&gt;, not by double-clicking to get into it. &amp;nbsp;In fact, if you're in Model Space through a Viewport when you start, it takes you out to Paper Space and asks you to select, so you can do this in a &lt;EM&gt;different&lt;/EM&gt; Viewport than the one you're in when you start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far, it does only &lt;EM&gt;one&lt;/EM&gt; Pan, in pick-two-points mode rather than dynamically, not the Pan-around-all-you-want that would be preferable. &amp;nbsp;But the pick-two-points variety may be the only way to positively prevent the accidental scaling that can happen if you use the mouse wheel. &amp;nbsp;It would probably be possible to have it recall that mode of Panning until you tell it you're done, so you can fine-tune the view in one running of the command, rather than recalling it and reselecting the Viewport if you don't get it to where you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BUT, this works in any Viewport, &lt;EM&gt;whether locked or not&lt;/EM&gt;. &amp;nbsp;If it's locked, it unlocks it for Panning and then re-locks it. &amp;nbsp;If it's unlocked, it leaves it that way.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 17:14:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553202#M261823</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-09-09T17:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553333#M261824</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/239200"&gt;@vladimir_michl&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;If you succeed finding a free hotkey combination, you can also use the CUI command (keyboard shortcuts) and assign the following modified "unLock" macro (&lt;STRONG&gt;AVPuL&lt;/STRONG&gt;) to a "button down" event (or to a separate hotkey) and a "restore" macro (&lt;STRONG&gt;AVPre&lt;/STRONG&gt;) to a "button up" event (or a second hotkey):&lt;/P&gt;&lt;P&gt;&amp;nbsp;(...)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi and thanks for your answer.&lt;/P&gt;&lt;P&gt;I'm not sure If I understood well, maybe that's too much for me :&lt;/P&gt;&lt;P&gt;At first I understood that I could, via CUI/Keyboard shortcut/Temporary Override Keys create a new T.O.Key&lt;/P&gt;&lt;P&gt;So&amp;nbsp;I load up your lisp, than try to figure out how to write the macro 1 and 2... only way I found was&lt;/P&gt;&lt;P&gt;Macro 1 (key Down) : (c:AVPul)&lt;/P&gt;&lt;P&gt;Macro 2 (key up) : (c:AVPre)&lt;/P&gt;&lt;P&gt;And assign&amp;nbsp;SHIFT+1 to this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But doesn't work because it's an override so a command must be running and if I start the PAN command it returns :&lt;/P&gt;&lt;P&gt;"Viewport is view-locked. Switching to Paper space."&lt;/P&gt;&lt;P&gt;So AVPul can't be triggered&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get the Up / Down key to work?&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;Then maybe another way which would be&lt;/P&gt;&lt;P&gt;1. To be in a locked viewport and fire up&amp;nbsp;AVPul from hot key combination (CTRL+SHIFT+2) to unlock viewport&lt;/P&gt;&lt;P&gt;2. Pan&lt;/P&gt;&lt;P&gt;3. fire up AVPre from another hot key combination (CTRL+SHIFT-3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But didn't test it out because this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Leads me to another &lt;EM&gt;final&lt;/EM&gt;&amp;nbsp;way by mixing up the LPAN lisp found above with a mouse button click action:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;SHIFT+Button3 &lt;FONT color="#000000"&gt;(middle mouse button)&lt;/FONT&gt; triggers LPAN &lt;FONT color="#000000"&gt;(created a new "command" in CUI command list with macro calling : (c:LPAN) (right way?))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Finally, this 3rd&amp;nbsp;way is pretty fast to get to Pan my inially locked viewport... seems to have to issue...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;+ Lazy pro tip to that suits my workflow&amp;nbsp;:&amp;nbsp;Adding to get to PSPACE after ending PAN...&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;(defun c:LPAN ( / *error*)

  (defun *error* (errmsg)
    (if (not (wcmatch errmsg "Function cancelled,quit / exit abort,console break,end"))
      (princ (strcat "\nError: " errmsg)))
    (c:ActiveVPUnLock)
    (princ))
  
  (c:ActiveVPLock)
  (initcommandversion)
 &lt;FONT color="#999999"&gt; &lt;STRIKE&gt;(setvar 'cmdecho 0)&lt;/STRIKE&gt;&lt;/FONT&gt;
  (command "_.PAN")
  (while (&amp;gt; (getvar 'CMDACTIVE) 0) (command PAUSE))
  (c:ActiveVPUnLock)
  &lt;FONT color="#0000FF"&gt;(command "PSPACE")
 &lt;FONT color="#999999"&gt; &lt;STRIKE&gt;(setvar 'cmdecho 1)&lt;/STRIKE&gt;&lt;/FONT&gt;
  (prompt "\nLPAN Done")&lt;/FONT&gt;
  (princ)
)&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;I get my imaginary workflow to be real I guess...!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But yess it would certainly be cool to understand how to set the macro down and up keyboard key and everything but if it's to complicated, I can&amp;nbsp;live with that last setup I just described... &amp;nbsp;It's pretty fast!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you again!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 18:10:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553333#M261824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-09T18:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553343#M261825</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/569689"&gt;@RobDraw&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I tell people to never pan in a viewport. It's just too easy to change the scale while pressing&amp;nbsp;the wheel. Adjusting the&amp;nbsp;viewport instead of the view&amp;nbsp;is just so easy. (Who really cares about a couple of&amp;nbsp;clicks?)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can't argue on this!&lt;BR /&gt;Humm well I could say that my "ZOOMFACTOR" is so hard that I can't miss the change of the scale if it ever happens...&lt;BR /&gt;Could also buy a decent computer mouse (mice?) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 18:13:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553343#M261825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-09T18:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553371#M261826</link>
      <description>&lt;P&gt;RobDraw wrote:&amp;nbsp;&lt;SPAN&gt;(Who really cares about a couple of&amp;nbsp;clicks?)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I once&amp;nbsp;read somewhere...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Everything should be made as simple as possible, but not simpler.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This "Override Key" sounds like so. Well, to me anyway&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 18:19:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553371#M261826</guid>
      <dc:creator>qnologi</dc:creator>
      <dc:date>2016-09-09T18:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Override key to Pan in a Locked Viewport (Temporarly unlock+pan)</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553379#M261827</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;FONT color="#999999"&gt;Kent1Cooper wrote:&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;&lt;LI-SPOILER&gt;&lt;BLOCKQUOTE&gt;&lt;FONT color="#999999"&gt;(...)&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;FONT color="#999999"&gt;So far, it does only &lt;EM&gt;one&lt;/EM&gt; Pan, in pick-two-points mode rather than dynamically, not the Pan-around-all-you-want that would be preferable. &amp;nbsp;But the pick-two-points variety may be the only way to positively prevent the accidental scaling that can happen if you use the mouse wheel. &amp;nbsp;It would probably be possible to have it recall that mode of Panning until you tell it you're done, so you can fine-tune the view in one running of the command, rather than recalling it and reselecting the Viewport if you don't get it to where you want.&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#999999"&gt;&amp;nbsp; BUT, this works in any Viewport, &lt;EM&gt;whether locked or not&lt;/EM&gt;. &amp;nbsp;If it's locked, it unlocks it for Panning and then re-locks it. &amp;nbsp;If it's unlocked, it leaves it that way.&lt;/FONT&gt;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Wow, interesting, I'll check it out and it's true that it's a risky workflow I'm trying to get but I assume... as it get me to be so much faster while preparing/modifying all layouts... and as I said, I think ZOOMFACTOR is the key to this accidental scaling... I'm working at 75...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You !&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 18:20:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/override-key-to-pan-in-a-locked-viewport-temporarly-unlock-pan/m-p/6553379#M261827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-09T18:20:51Z</dc:date>
    </item>
  </channel>
</rss>

