<?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: Sysvars not updating while commands are active - Help in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/sysvars-not-updating-while-commands-are-active-help/m-p/7920890#M6794</link>
    <description>&lt;P&gt;The usual way to implement view dependent graphics is to overwrite &lt;FONT face="courier new,courier"&gt;subViewportDraw(AcGiViewportDraw*)&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;Your &lt;FONT face="courier new,courier"&gt;subWorldDraw()&lt;/FONT&gt; overwrite must return &lt;SPAN class="Element146"&gt;&lt;FONT face="courier new,courier"&gt;Adesk::kFalse&lt;/FONT&gt; to make sure that&amp;nbsp;&lt;FONT face="courier new,courier"&gt;subViewportDraw()&lt;/FONT&gt;&lt;/SPAN&gt; is called.&lt;/P&gt;&lt;P&gt;This way you can make sure that your entity is displayed correct even if there are multiple viewports visible at the same time.&lt;/P&gt;&lt;P&gt;I think even if you would find a suitable reactor that is fired upon view direction or zoom change you would not be able to modify the entity display in the graphic system within the current command.&lt;/P&gt;&lt;DIV class="Element720"&gt;&lt;DIV class="Element721"&gt;&lt;DIV class="Element58"&gt;&lt;DIV&gt;&lt;DIV class="Element11"&gt;&lt;DIV class="Element10"&gt;&lt;P class="Element10"&gt;&lt;SPAN class="Element146"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 10 Apr 2018 11:19:48 GMT</pubDate>
    <dc:creator>tbrammer</dc:creator>
    <dc:date>2018-04-10T11:19:48Z</dc:date>
    <item>
      <title>Sysvars not updating while commands are active - Help</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/sysvars-not-updating-while-commands-are-active-help/m-p/7911350#M6793</link>
      <description>&lt;P&gt;I have a custom object that displays based on view. I have an editor reactor setup that is triggered by viewChange. Within the view change I get the following setvars:&amp;nbsp;ViewDir,&amp;nbsp;ViewCtr, ViewSize and ScreenSize.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What appears to happen is that when I pan or zoom via the mouse it seems to trigger the viewChange and these variables update based on the current viewport.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a command is active like Line or 3dPoly the viewChanged is triggered but these system variables don't update while in an active command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another command is Orbit which triggers 3dOrbit, while in this command the above is also the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the acedGetVar to retrieve these variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an alternative method I should be using to get the updated values of these variables while commands are active. Or is there a way to get the View information. CAD is updating the display but I am just unable to query these until a command is NOT active.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:23:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/sysvars-not-updating-while-commands-are-active-help/m-p/7911350#M6793</guid>
      <dc:creator>jmassengale</dc:creator>
      <dc:date>2018-04-05T15:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sysvars not updating while commands are active - Help</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/sysvars-not-updating-while-commands-are-active-help/m-p/7920890#M6794</link>
      <description>&lt;P&gt;The usual way to implement view dependent graphics is to overwrite &lt;FONT face="courier new,courier"&gt;subViewportDraw(AcGiViewportDraw*)&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;Your &lt;FONT face="courier new,courier"&gt;subWorldDraw()&lt;/FONT&gt; overwrite must return &lt;SPAN class="Element146"&gt;&lt;FONT face="courier new,courier"&gt;Adesk::kFalse&lt;/FONT&gt; to make sure that&amp;nbsp;&lt;FONT face="courier new,courier"&gt;subViewportDraw()&lt;/FONT&gt;&lt;/SPAN&gt; is called.&lt;/P&gt;&lt;P&gt;This way you can make sure that your entity is displayed correct even if there are multiple viewports visible at the same time.&lt;/P&gt;&lt;P&gt;I think even if you would find a suitable reactor that is fired upon view direction or zoom change you would not be able to modify the entity display in the graphic system within the current command.&lt;/P&gt;&lt;DIV class="Element720"&gt;&lt;DIV class="Element721"&gt;&lt;DIV class="Element58"&gt;&lt;DIV&gt;&lt;DIV class="Element11"&gt;&lt;DIV class="Element10"&gt;&lt;P class="Element10"&gt;&lt;SPAN class="Element146"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Apr 2018 11:19:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/sysvars-not-updating-while-commands-are-active-help/m-p/7920890#M6794</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2018-04-10T11:19:48Z</dc:date>
    </item>
  </channel>
</rss>

