<?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 Betreff: Issue with Redrawing Custom Entity in Orthographic Mode in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/issue-with-redrawing-custom-entity-in-orthographic-mode/m-p/13252112#M265</link>
    <description>&lt;P&gt;Zoom and pan should not require viewportDraw() or even wordDraw() to be called to update the graphic primitives if the entity didn't change. Why is it an issue to you?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to force an update of an entity you can open the entity for write and call&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ent-&amp;gt;recordGraphicsModified()&lt;/FONT&gt;. But this won't work during zoom or pan.&lt;BR /&gt;&lt;BR /&gt;You could try to overwrite:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;  virtual Adesk::UInt32 subViewportDrawLogicalFlags (AcGiViewportDraw *vd)&lt;/LI-CODE&gt;
&lt;P&gt;The return value is a sum of all desired &lt;FONT face="courier new,courier"&gt;AcGiDrawable::SetAttributesFlags&lt;/FONT&gt; flags.&lt;BR /&gt;Try to return &lt;FONT face="courier new,courier"&gt;AcGiDrawable::kDrawableRegenDraw&lt;/FONT&gt; and / or&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;AcGiDrawable::kDrawableViewDependentViewportDraw&lt;/FONT&gt;. But I'm afraid this would not help.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2025 14:56:04 GMT</pubDate>
    <dc:creator>tbrammer</dc:creator>
    <dc:date>2025-01-09T14:56:04Z</dc:date>
    <item>
      <title>Issue with Redrawing Custom Entity in Orthographic Mode</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/issue-with-redrawing-custom-entity-in-orthographic-mode/m-p/13244648#M264</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I’ve created a custom entity by inheriting from the AcDbEntity class. As part of the implementation, I overrode the subWorldDraw and subViewportDraw methods to handle dynamic rendering based on the current view parameters.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In perspective mode, everything works as expected, the rendering updates dynamically when the view changes (e.g., zoom, pan, orbit). Both subWorldDraw and subViewportDraw methods are triggered correctly to reflect these changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, in orthographic mode, I’ve noticed an issue:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;These methods are only triggered when performing an orbit motion with the mouse.&lt;/LI&gt;&lt;LI&gt;They are not invoked during zoom or pan operations, which causes the rendering to remain static until an orbit action is performed.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Does anyone have insights or suggestions on how to ensure these methods are triggered during zoom and pan actions in orthographic mode ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 07:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/issue-with-redrawing-custom-entity-in-orthographic-mode/m-p/13244648#M264</guid>
      <dc:creator>el-mehdi_slaoui9UZHZ</dc:creator>
      <dc:date>2025-01-06T07:43:52Z</dc:date>
    </item>
    <item>
      <title>Betreff: Issue with Redrawing Custom Entity in Orthographic Mode</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/issue-with-redrawing-custom-entity-in-orthographic-mode/m-p/13252112#M265</link>
      <description>&lt;P&gt;Zoom and pan should not require viewportDraw() or even wordDraw() to be called to update the graphic primitives if the entity didn't change. Why is it an issue to you?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to force an update of an entity you can open the entity for write and call&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ent-&amp;gt;recordGraphicsModified()&lt;/FONT&gt;. But this won't work during zoom or pan.&lt;BR /&gt;&lt;BR /&gt;You could try to overwrite:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;  virtual Adesk::UInt32 subViewportDrawLogicalFlags (AcGiViewportDraw *vd)&lt;/LI-CODE&gt;
&lt;P&gt;The return value is a sum of all desired &lt;FONT face="courier new,courier"&gt;AcGiDrawable::SetAttributesFlags&lt;/FONT&gt; flags.&lt;BR /&gt;Try to return &lt;FONT face="courier new,courier"&gt;AcGiDrawable::kDrawableRegenDraw&lt;/FONT&gt; and / or&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;AcGiDrawable::kDrawableViewDependentViewportDraw&lt;/FONT&gt;. But I'm afraid this would not help.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 14:56:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/issue-with-redrawing-custom-entity-in-orthographic-mode/m-p/13252112#M265</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2025-01-09T14:56:04Z</dc:date>
    </item>
  </channel>
</rss>

