<?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 Realtime Zoom from Macro in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/realtime-zoom-from-macro/m-p/1558539#M36637</link>
    <description>Is it possible to perform a realtime zoom while in a Macro.&lt;BR /&gt;
&lt;BR /&gt;
I have a macro and want to be able to zoom in &amp;amp; out while the macro is still running.&lt;BR /&gt;
&lt;BR /&gt;
I tried:&lt;BR /&gt;
&lt;BR /&gt;
Me.Hide&lt;BR /&gt;
Application.ZoomAll&lt;BR /&gt;
Application.ZoomPickWindow&lt;BR /&gt;
Me.Show&lt;BR /&gt;
&lt;BR /&gt;
I'd rather do a realtime zoom, but the only way I can think of to do it is:&lt;BR /&gt;
&lt;BR /&gt;
Me.Hide&lt;BR /&gt;
ThisDrawing.SendCommand ("z" &amp;amp; vbCr &amp;amp; vbCr)&lt;BR /&gt;
Me.Show&lt;BR /&gt;
&lt;BR /&gt;
but this doesnt work either.  The Me.Show brings sets focus back to the Macro before I have a chance to perform the zoom.</description>
    <pubDate>Thu, 16 Feb 2006 02:25:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-02-16T02:25:53Z</dc:date>
    <item>
      <title>Realtime Zoom from Macro</title>
      <link>https://forums.autodesk.com/t5/vba-forum/realtime-zoom-from-macro/m-p/1558539#M36637</link>
      <description>Is it possible to perform a realtime zoom while in a Macro.&lt;BR /&gt;
&lt;BR /&gt;
I have a macro and want to be able to zoom in &amp;amp; out while the macro is still running.&lt;BR /&gt;
&lt;BR /&gt;
I tried:&lt;BR /&gt;
&lt;BR /&gt;
Me.Hide&lt;BR /&gt;
Application.ZoomAll&lt;BR /&gt;
Application.ZoomPickWindow&lt;BR /&gt;
Me.Show&lt;BR /&gt;
&lt;BR /&gt;
I'd rather do a realtime zoom, but the only way I can think of to do it is:&lt;BR /&gt;
&lt;BR /&gt;
Me.Hide&lt;BR /&gt;
ThisDrawing.SendCommand ("z" &amp;amp; vbCr &amp;amp; vbCr)&lt;BR /&gt;
Me.Show&lt;BR /&gt;
&lt;BR /&gt;
but this doesnt work either.  The Me.Show brings sets focus back to the Macro before I have a chance to perform the zoom.</description>
      <pubDate>Thu, 16 Feb 2006 02:25:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/realtime-zoom-from-macro/m-p/1558539#M36637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-02-16T02:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Realtime Zoom from Macro</title>
      <link>https://forums.autodesk.com/t5/vba-forum/realtime-zoom-from-macro/m-p/1558540#M36638</link>
      <description>You normally need to regen the drawing to show the updates:&lt;BR /&gt;
&lt;BR /&gt;
[code]&lt;BR /&gt;
' The following example regenerates the complete drawing&lt;BR /&gt;
ThisDrawing.Regen acAllViewports&lt;BR /&gt;
' The following example regenerates the active viewport in the current &lt;BR /&gt;
drawing&lt;BR /&gt;
ThisDrawing.Regen acActiveViewport&lt;BR /&gt;
[/code]&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Phil Custer II, P.E.&lt;BR /&gt;
Custer Services, Inc.&lt;BR /&gt;
custer@landfillgas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;LEDHED&gt; wrote in message news:5087744@discussion.autodesk.com...&lt;BR /&gt;
Is it possible to perform a realtime zoom while in a Macro.&lt;BR /&gt;
&lt;BR /&gt;
I have a macro and want to be able to zoom in &amp;amp; out while the macro is still &lt;BR /&gt;
running.&lt;BR /&gt;
&lt;BR /&gt;
I tried:&lt;BR /&gt;
&lt;BR /&gt;
Me.Hide&lt;BR /&gt;
Application.ZoomAll&lt;BR /&gt;
Application.ZoomPickWindow&lt;BR /&gt;
Me.Show&lt;BR /&gt;
&lt;BR /&gt;
I'd rather do a realtime zoom, but the only way I can think of to do it is:&lt;BR /&gt;
&lt;BR /&gt;
Me.Hide&lt;BR /&gt;
ThisDrawing.SendCommand ("z" &amp;amp; vbCr &amp;amp; vbCr)&lt;BR /&gt;
Me.Show&lt;BR /&gt;
&lt;BR /&gt;
but this doesnt work either.  The Me.Show brings sets focus back to the &lt;BR /&gt;
Macro before I have a chance to perform the zoom.&lt;/LEDHED&gt;</description>
      <pubDate>Thu, 16 Feb 2006 12:52:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/realtime-zoom-from-macro/m-p/1558540#M36638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-02-16T12:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Realtime Zoom from Macro</title>
      <link>https://forums.autodesk.com/t5/vba-forum/realtime-zoom-from-macro/m-p/1558541#M36639</link>
      <description>I'm not worried about the Regen. It works as I have it now, but I'd rather the user perform a realtime zoom instead of a zoom all then zoom window.</description>
      <pubDate>Wed, 22 Feb 2006 18:52:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/realtime-zoom-from-macro/m-p/1558541#M36639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-02-22T18:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Realtime Zoom from Macro</title>
      <link>https://forums.autodesk.com/t5/vba-forum/realtime-zoom-from-macro/m-p/1558542#M36640</link>
      <description>Can you add a loop before Me.Show checking whether AcadApplication.GetAcadState.IsQuiescent = true.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Wed, 22 Feb 2006 22:01:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/realtime-zoom-from-macro/m-p/1558542#M36640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-02-22T22:01:36Z</dc:date>
    </item>
  </channel>
</rss>

