<?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: Will HostApplicationServices return the correct instance of AutoCAD? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13933062#M86261</link>
    <description>&lt;P&gt;I use it to load ARX modules in vanilla , hasn’t failed yet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;    static void loadDBXModules()
    {
        const int version = acdbHostApplicationServices()-&amp;gt;releaseMajorVersion();
        const auto acismobj = std::format(_T("acismobj{}.dbx"), version);
        const auto acMPolygonObj = std::format(_T("AcMPolygonObj{}.dbx"), version);
        if (const auto result = acrxLoadModule(acismobj.c_str(), false, false); !result)
            acutPrintf(_T("Failed to load %ls: "), acismobj.c_str());
        if (const auto result = acrxLoadModule(acMPolygonObj.c_str(), false, false); !result)
            acutPrintf(_T("Failed to load %ls: "), acMPolygonObj.c_str());
    }&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 05 Dec 2025 09:03:47 GMT</pubDate>
    <dc:creator>daniel_cadext</dc:creator>
    <dc:date>2025-12-05T09:03:47Z</dc:date>
    <item>
      <title>Will HostApplicationServices return the correct instance of AutoCAD?</title>
      <link>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13932978#M86260</link>
      <description>&lt;P&gt;From &lt;A href="https://help.autodesk.com/view/OARX/2026/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_HostApplicationServices" target="_blank" rel="noopener"&gt;the help&lt;/A&gt; it says that&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;The&amp;nbsp;HostApplicationServices&amp;nbsp;class provides various services to host applications at runtime.&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I guess that means that if I have multiple ACAD/C3D version installed, then the HostApplicationServices will return the registry key sets differently, depending on which version that is currently running? It does seem that way, but I need to be sure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 07:28:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13932978#M86260</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2025-12-05T07:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Will HostApplicationServices return the correct instance of AutoCAD?</title>
      <link>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13933062#M86261</link>
      <description>&lt;P&gt;I use it to load ARX modules in vanilla , hasn’t failed yet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;    static void loadDBXModules()
    {
        const int version = acdbHostApplicationServices()-&amp;gt;releaseMajorVersion();
        const auto acismobj = std::format(_T("acismobj{}.dbx"), version);
        const auto acMPolygonObj = std::format(_T("AcMPolygonObj{}.dbx"), version);
        if (const auto result = acrxLoadModule(acismobj.c_str(), false, false); !result)
            acutPrintf(_T("Failed to load %ls: "), acismobj.c_str());
        if (const auto result = acrxLoadModule(acMPolygonObj.c_str(), false, false); !result)
            acutPrintf(_T("Failed to load %ls: "), acMPolygonObj.c_str());
    }&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Dec 2025 09:03:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13933062#M86261</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2025-12-05T09:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Will HostApplicationServices return the correct instance of AutoCAD?</title>
      <link>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13933067#M86262</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8575899"&gt;@daniel_cadext&lt;/a&gt;&amp;nbsp;, but this is not .Net though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 09:05:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13933067#M86262</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2025-12-05T09:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Will HostApplicationServices return the correct instance of AutoCAD?</title>
      <link>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13933074#M86263</link>
      <description>&lt;P&gt;Yes, it returns the registry keys for the executing product. It doesn't know anything about any other installed products other than the one that is running.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 09:13:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13933074#M86263</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2025-12-05T09:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Will HostApplicationServices return the correct instance of AutoCAD?</title>
      <link>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13933110#M86266</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7472042"&gt;@soonhui&lt;/a&gt;&amp;nbsp;.NET is a wrapper around ARX&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 09:42:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/will-hostapplicationservices-return-the-correct-instance-of/m-p/13933110#M86266</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2025-12-05T09:42:01Z</dc:date>
    </item>
  </channel>
</rss>

