<?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 Update Viewport after enabling an VisibilityOverrule in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/update-viewport-after-enabling-an-visibilityoverrule/m-p/9049667#M5119</link>
    <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;I have implemented an VisibilityOverrule which temporarily hides all entities of a drawing.&lt;/P&gt;&lt;P&gt;After it is enabled I us a jig class to interact with the user inside the cleared drawing. For all visual styles except wireframe2d, the entities are not hidden automatically. I have to refesh the viewport. The only way I found so far is to call the undocumented function acedColorSettingsChanged. After it is called. All entities are gone.&amp;nbsp; I tried different ways to achieve the same result but without success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;acedCommandS(RTSTR, L"REGEN", RTNONE)&lt;/P&gt;&lt;P&gt;acedCommandS(RTSTR, L"REGENALL", RTNONE)&lt;/P&gt;&lt;P&gt;acedUpdateDisplay&lt;/P&gt;&lt;P&gt;acedUpdate&lt;/P&gt;&lt;P&gt;AcGsView::invalidate()&lt;/P&gt;&lt;P&gt;AcGsView::update()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What else could it be? Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 11:53:46 GMT</pubDate>
    <dc:creator>fehrsZBFB9</dc:creator>
    <dc:date>2019-09-26T11:53:46Z</dc:date>
    <item>
      <title>Update Viewport after enabling an VisibilityOverrule</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/update-viewport-after-enabling-an-visibilityoverrule/m-p/9049667#M5119</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;I have implemented an VisibilityOverrule which temporarily hides all entities of a drawing.&lt;/P&gt;&lt;P&gt;After it is enabled I us a jig class to interact with the user inside the cleared drawing. For all visual styles except wireframe2d, the entities are not hidden automatically. I have to refesh the viewport. The only way I found so far is to call the undocumented function acedColorSettingsChanged. After it is called. All entities are gone.&amp;nbsp; I tried different ways to achieve the same result but without success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;acedCommandS(RTSTR, L"REGEN", RTNONE)&lt;/P&gt;&lt;P&gt;acedCommandS(RTSTR, L"REGENALL", RTNONE)&lt;/P&gt;&lt;P&gt;acedUpdateDisplay&lt;/P&gt;&lt;P&gt;acedUpdate&lt;/P&gt;&lt;P&gt;AcGsView::invalidate()&lt;/P&gt;&lt;P&gt;AcGsView::update()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What else could it be? Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 11:53:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/update-viewport-after-enabling-an-visibilityoverrule/m-p/9049667#M5119</guid>
      <dc:creator>fehrsZBFB9</dc:creator>
      <dc:date>2019-09-26T11:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Update Viewport after enabling an VisibilityOverrule</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/update-viewport-after-enabling-an-visibilityoverrule/m-p/9049677#M5120</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;
&lt;PRE&gt;acedCommandS(RTSTR, L"REGEN3", RTNONE);&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Sep 2019 11:57:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/update-viewport-after-enabling-an-visibilityoverrule/m-p/9049677#M5120</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-09-26T11:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update Viewport after enabling an VisibilityOverrule</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/update-viewport-after-enabling-an-visibilityoverrule/m-p/9049939#M5121</link>
      <description>&lt;P&gt;It works so far. Sadly it does not regenerate the hidden entities for wireframe2d after the overrule gets disabled. They are still hidden afterwards. For wireframe2d I have to use REGEN instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is the fastest/simplest way to detect if wireframe2d is active?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 13:24:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/update-viewport-after-enabling-an-visibilityoverrule/m-p/9049939#M5121</guid>
      <dc:creator>fehrsZBFB9</dc:creator>
      <dc:date>2019-09-26T13:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Update Viewport after enabling an VisibilityOverrule</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/update-viewport-after-enabling-an-visibilityoverrule/m-p/9050067#M5122</link>
      <description>&lt;PRE&gt;AcDbObjectPointer&amp;lt;AcDbVisualStyle&amp;gt; pVstyle(acdbGetViewportVisualStyle(), AcDb::kForRead);
if (pVstyle.openStatus() == Acad::eOk)
{
    acutPrintf(L"\nVisual Style is %s WireFrame 2D", 
      (pVstyle-&amp;gt;type() != AcGiVisualStyle::k2DWireframe) ? L"NOT" : L"");
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Sep 2019 14:00:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/update-viewport-after-enabling-an-visibilityoverrule/m-p/9050067#M5122</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-09-26T14:00:22Z</dc:date>
    </item>
  </channel>
</rss>

