<?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 Fast mode incompaible module in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11121648#M2572</link>
    <description>&lt;P&gt;Switching from AutoCAD 2022 to AutoCAD 2023 I receive the following incompatibility warning from AutoCAD:&lt;/P&gt;&lt;P&gt;Due to an incompatible plugin, fast mode of the Shaded visual style has been disabled for this session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know about the new fast mode and that it is activated by default if the hardware supports it.&amp;nbsp; What I don't know is why my module is incompatible. The error message isn't very helpful. Even If I do nothing in the initialization routines It still appears. Othery C++ similar arx-Modules don't produce this warning. Ths seems&amp;nbsp; to be a result of linking to a dependency or including a specific header. I don't know where to start. Has anyone an idea?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2022 08:29:42 GMT</pubDate>
    <dc:creator>fehrsZBFB9</dc:creator>
    <dc:date>2022-04-22T08:29:42Z</dc:date>
    <item>
      <title>Fast mode incompaible module</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11121648#M2572</link>
      <description>&lt;P&gt;Switching from AutoCAD 2022 to AutoCAD 2023 I receive the following incompatibility warning from AutoCAD:&lt;/P&gt;&lt;P&gt;Due to an incompatible plugin, fast mode of the Shaded visual style has been disabled for this session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know about the new fast mode and that it is activated by default if the hardware supports it.&amp;nbsp; What I don't know is why my module is incompatible. The error message isn't very helpful. Even If I do nothing in the initialization routines It still appears. Othery C++ similar arx-Modules don't produce this warning. Ths seems&amp;nbsp; to be a result of linking to a dependency or including a specific header. I don't know where to start. Has anyone an idea?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 08:29:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11121648#M2572</guid>
      <dc:creator>fehrsZBFB9</dc:creator>
      <dc:date>2022-04-22T08:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fast mode incompaible module</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11121721#M2573</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now we have two 3D kernels, you need to specify the kernel.&lt;/P&gt;
&lt;P&gt;The GS must now be referenced from the GS manager or by getting a message from an event handler, and no longer from the database or the drawable graphics interface. The following methods are obsolete and code statements using them most be updated:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;AcDbDatabase::gsModel()/setGsModel()
AcGiDrawable::gsNode()/setGsNode()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If your program previously used AcDbDatabase::gsModel(), update your code to use the GS manager. The following code sample gets the GS model using the GS manager:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;AcDbHostApplicationServices * pHAS = ::acdbHostApplicationServices();
AcadInternalServices *pAIS = pHAS-&amp;gt;acadInternalServices();
AcGsManager* pMgr = pAIS ? pAIS-&amp;gt;getAcGsManager() : nullptr;
AcGsModel* pModel = pMgr ? pMgr-&amp;gt;gsModel(db) : nullptr;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The hasGsModel of the GS manager returns a Boolean based on if the GS model is not null.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;AcGsManager::hasGsModel()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If your program previously used the &lt;CODE&gt; AcGiDrawable::gsNode()&lt;/CODE&gt; method to update an object, you must now utilize the callback system. The callback system consists of two different message handlers: &lt;CODE&gt;AcGiDrawableReactor::modified()&lt;/CODE&gt; and &lt;CODE&gt;AcGiDrawableReactor::erased() &lt;/CODE&gt;. You register or unregister to receive messages about graphics handling with the &lt;CODE&gt;AcGiDrawableEvent::addReactor &lt;/CODE&gt; and &lt;CODE&gt;AcGiDrawableEvent::removeReactor() &lt;/CODE&gt; methods.&lt;BR /&gt;NOTE:&lt;CODE&gt;The AcGiDrawable::gsNode()/setGsNode() &lt;/CODE&gt;methods were originally deprecated in AutoCAD 2015, but the methods have now been completely removed from the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't slow can you share the code of failing module ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 09:04:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11121721#M2573</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2022-04-22T09:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fast mode incompaible module</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11121861#M2574</link>
      <description>&lt;P&gt;This helped. But where is AcadInternalServices defined?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot call&amp;nbsp; pAIS-&amp;gt;getAcGsManager(). I get an incomplete class error. Which haeder should I include?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 10:11:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11121861#M2574</guid>
      <dc:creator>fehrsZBFB9</dc:creator>
      <dc:date>2022-04-22T10:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fast mode incompaible module</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11122565#M2575</link>
      <description>AcadInternalServices is an AutoCAD internal only class that is not defined in any public header files because it is not meant to be used by anything other than AutoCAD internal code.&lt;BR /&gt;&lt;BR /&gt;The AcGsManager class isn't an area that I'm familiar with, so I can't tell you what you could use instead.  Hopefully Madhukar will be able to provide you with code that doesn't use AcadInternalServices.</description>
      <pubDate>Fri, 22 Apr 2022 15:17:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11122565#M2575</guid>
      <dc:creator>artc2</dc:creator>
      <dc:date>2022-04-22T15:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fast mode incompaible module</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11122681#M2576</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1937895"&gt;@moogalm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I see ObjectARX SDK 2023 has new class AcGsManager2 which have to be used instead of AcGsManager.&lt;/P&gt;
&lt;P&gt;acgs.h has next two definitions of functions:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;ACCORE_PORT AcGsManager *acgsGetCurrentGsManager();
ACCORE_PORT AcGsManager2* acgsGetCurrentGsManager2();
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 16:03:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/fast-mode-incompaible-module/m-p/11122681#M2576</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2022-04-22T16:03:49Z</dc:date>
    </item>
  </channel>
</rss>

