<?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 How to get name of inherited class of selected entity in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085154#M386</link>
    <description>&lt;P&gt;If I select entity from DWG, by ssgeg function, I have a general entity pointer (&lt;EM&gt;&lt;STRONG&gt;AcDbEntity* pEntity&lt;/STRONG&gt;&lt;/EM&gt;). How I get a real class name of this netity (eg. &lt;EM&gt;&lt;STRONG&gt;AcDbLine&lt;/STRONG&gt;&lt;/EM&gt; or &lt;EM&gt;&lt;STRONG&gt;AcDbText&lt;/STRONG&gt;&lt;/EM&gt;, etc...). Like string.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;pEntity-&amp;gt;className()&lt;/STRONG&gt;&lt;/EM&gt; return "AcDbEntity"&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;pEntity-&amp;gt;isA()-&amp;gt;desc()-&amp;gt;className()&lt;/STRONG&gt;&lt;/EM&gt; return some unsence ("AcRxObject").&lt;/P&gt;&lt;P&gt;I, of course, dont know, what type pEntity is. I cannot use &lt;EM&gt;&lt;STRONG&gt;AcDbLine::desc(pEntity)&lt;/STRONG&gt;&lt;/EM&gt;.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 09:59:30 GMT</pubDate>
    <dc:creator>majklha</dc:creator>
    <dc:date>2024-10-15T09:59:30Z</dc:date>
    <item>
      <title>How to get name of inherited class of selected entity</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085154#M386</link>
      <description>&lt;P&gt;If I select entity from DWG, by ssgeg function, I have a general entity pointer (&lt;EM&gt;&lt;STRONG&gt;AcDbEntity* pEntity&lt;/STRONG&gt;&lt;/EM&gt;). How I get a real class name of this netity (eg. &lt;EM&gt;&lt;STRONG&gt;AcDbLine&lt;/STRONG&gt;&lt;/EM&gt; or &lt;EM&gt;&lt;STRONG&gt;AcDbText&lt;/STRONG&gt;&lt;/EM&gt;, etc...). Like string.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;pEntity-&amp;gt;className()&lt;/STRONG&gt;&lt;/EM&gt; return "AcDbEntity"&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;pEntity-&amp;gt;isA()-&amp;gt;desc()-&amp;gt;className()&lt;/STRONG&gt;&lt;/EM&gt; return some unsence ("AcRxObject").&lt;/P&gt;&lt;P&gt;I, of course, dont know, what type pEntity is. I cannot use &lt;EM&gt;&lt;STRONG&gt;AcDbLine::desc(pEntity)&lt;/STRONG&gt;&lt;/EM&gt;.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 09:59:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085154#M386</guid>
      <dc:creator>majklha</dc:creator>
      <dc:date>2024-10-15T09:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name of inherited class of selected entity</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085231#M387</link>
      <description>&lt;LI-CODE lang="cpp"&gt;    static auto entsel()
    {
        AcGePoint3d pnt;
        ads_name name = { 0L };
        int res = acedEntSel(L"\nSelect it: ", name, asDblArray(pnt));
        AcDbObjectId id;
        if(auto es = acdbGetObjectId(id, name); es != eOk)
            return std::make_tuple(Acad::PromptStatus::eError, id, pnt);
        return std::make_tuple(Acad::PromptStatus(res), id, pnt);
    }

    static void AcRxMyApp_idoit(void)
    {
        auto [es, id, pnt] = entsel();
        if (es == Acad::PromptStatus::eNormal)
        {
            AcDbEntityPointer pEnt(id);
            acutPrintf(pEnt-&amp;gt;isA()-&amp;gt;name());
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="name.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1421601i0D4C6D0D8C652C3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="name.png" alt="name.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 10:54:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085231#M387</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-10-15T10:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name of inherited class of selected entity</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085375#M388</link>
      <description>&lt;P&gt;easy reply is:&lt;/P&gt;&lt;P&gt;pEntity-&amp;gt;isA()-&amp;gt;name();&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 12:20:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085375#M388</guid>
      <dc:creator>majklha</dc:creator>
      <dc:date>2024-10-15T12:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name of inherited class of selected entity</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085411#M389</link>
      <description>&lt;P&gt;easy reply is: thank you : )&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 12:42:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085411#M389</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-10-15T12:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name of inherited class of selected entity</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085433#M390</link>
      <description>&lt;P&gt;Of course, thank you. I forgot...&lt;/P&gt;&lt;P&gt;Sorry, it shouldn't be any irony. Your answer has been very helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote "easy answer" for others. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 12:47:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13085433#M390</guid>
      <dc:creator>majklha</dc:creator>
      <dc:date>2024-10-15T12:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name of inherited class of selected entity</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13089619#M391</link>
      <description>Hello! The result is AcDbLine or AcDbText. Can I get Line or Text? A zero value similar to DXF。thank you！</description>
      <pubDate>Wed, 16 Oct 2024 23:55:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13089619#M391</guid>
      <dc:creator>1127204185</dc:creator>
      <dc:date>2024-10-16T23:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name of inherited class of selected entity</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13089660#M392</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should return the dxf name&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;pEnt-&amp;gt;isA()-&amp;gt;dxfName()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 00:25:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13089660#M392</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-10-17T00:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name of inherited class of selected entity</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13089746#M393</link>
      <description>thank you！</description>
      <pubDate>Thu, 17 Oct 2024 01:34:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-get-name-of-inherited-class-of-selected-entity/m-p/13089746#M393</guid>
      <dc:creator>1127204185</dc:creator>
      <dc:date>2024-10-17T01:34:24Z</dc:date>
    </item>
  </channel>
</rss>

