<?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: Changing an entities type in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3641392#M14258</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;...I was wondering how to change an entity's type (DXF group code 2) using ObjectARX...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First of all entity's type DXF group is&lt;STRONG&gt; 0 (zero)&lt;/STRONG&gt;!&lt;/P&gt;
&lt;P&gt;DXF group &lt;STRONG&gt;2&lt;/STRONG&gt; is the name of block (if entity's type is "INSERT")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Oct 2012 18:55:32 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2012-10-01T18:55:32Z</dc:date>
    <item>
      <title>Changing an entities type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3640538#M14254</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering how to change an entity's type (DXF group code 2) using ObjectARX. I have been able to extract the currenty entity type AcDbEntGet. I have been able to change other properties of the entity using the AcDbEntMod function, however, it does not appear to allow me to change the type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone able to advise me on how I can do this? I am currently looking at AcDbBlockTableRecord to see if there is someway to do it using this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 12:47:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3640538#M14254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-01T12:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing an entities type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3640594#M14255</link>
      <description>&lt;P&gt;Not sure to understand correctly since I'm not extremely confortable with dxf codes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe this can help:&lt;/P&gt;&lt;P&gt;Changing an entity type in object arx is not possible by simply changing a property (you can't ask a line to become an arc for instance), this requires erasing the source entity and creating a new one of the type you want (erase the line, create a new arc).&lt;/P&gt;&lt;P&gt;In my mind, the dxf entity type is a read-only property.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 13:23:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3640594#M14255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-01T13:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing an entities type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3640684#M14256</link>
      <description>&lt;P&gt;Thank you, yes I have been able to erase the entity by obtaining the AcDbEntity pointer (and calling erase()). However I am having trouble creating a new custom entity in its place. The entity exists in the toolplallet so I assume its a case of using the acutBuildList command and then acdbEntMake. For example I thought this code would insert a circle -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;struct resbuf *entlist,*eb;
ads_point first = {3208.2, 956.295, 0.0};
char* layer = "0";

entlist = acutBuildList(0, "CIRCLE",// Entity type
8, layer, // Layer name
10, first,
100, "AcDbCircle",
100, "AcDbEntity",
0 );

acdbEntMake(entlist);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;However the Circle doesn't seem to insert. Any suggestions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 14:12:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3640684#M14256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-01T14:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing an entities type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3640804#M14257</link>
      <description>&lt;P&gt;Please&amp;nbsp;provide some information about your environment (AutoCAD version, OS), the return values from the calls to acutBuildList and acdbEntMake, and the context from which these calls take place.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 14:59:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3640804#M14257</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2012-10-01T14:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing an entities type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3641392#M14258</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;...I was wondering how to change an entity's type (DXF group code 2) using ObjectARX...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First of all entity's type DXF group is&lt;STRONG&gt; 0 (zero)&lt;/STRONG&gt;!&lt;/P&gt;
&lt;P&gt;DXF group &lt;STRONG&gt;2&lt;/STRONG&gt; is the name of block (if entity's type is "INSERT")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 18:55:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3641392#M14258</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-10-01T18:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changing an entities type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3643960#M14259</link>
      <description>&lt;P&gt;to get circle you need at least these DXF&lt;BR /&gt;0 - CIRCLE&lt;BR /&gt;10 - Center point&lt;/P&gt;&lt;P&gt;40 - Radius &amp;nbsp;&amp;lt;&amp;lt; you missing this&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2012 02:44:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/changing-an-entities-type/m-p/3643960#M14259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-03T02:44:44Z</dc:date>
    </item>
  </channel>
</rss>

