<?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: INSERT fails with eNotThatKindOfClass in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/insert-fails-with-enotthatkindofclass/m-p/1746336#M22900</link>
    <description>One thing that I'd try is to do it without the  custom entities. &lt;BR /&gt;
Also check the proxy flags: have you enabled cloning?&lt;BR /&gt;
&lt;BR /&gt;
Henrik Vallgren</description>
    <pubDate>Fri, 25 Aug 2006 09:06:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-08-25T09:06:44Z</dc:date>
    <item>
      <title>INSERT fails with eNotThatKindOfClass</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/insert-fails-with-enotthatkindofclass/m-p/1746335#M22899</link>
      <description>In the attached drawing, the INSERT command fails with *Invalid*. Further probing with ObjectARX code here:&lt;BR /&gt;
&lt;BR /&gt;
void InsertTest()&lt;BR /&gt;
{&lt;BR /&gt;
// Create a new database and read the drawing&lt;BR /&gt;
  AcDbDatabase *pInsDb = new AcDbDatabase;&lt;BR /&gt;
  Acad::ErrorStatus es = pInsDb-&amp;gt;readDwgFile("C:\\Test.dwg");&lt;BR /&gt;
  if (es != Acad::eOk) { acutPrintf("\nError %s reading\n",   acadErrorStatusText(es)); return; }&lt;BR /&gt;
&lt;BR /&gt;
// Insert the drawing into the current drawing&lt;BR /&gt;
// ** THIS WILL GENERATE "eNotThatKindOfClass" ERROR&lt;BR /&gt;
  es = acdbHostApplicationServices()-&amp;gt;workingDatabase()-&amp;gt;insert(AcGeMatrix3d::kIdentity, pInsDb);&lt;BR /&gt;
  if (es != Acad::eOk) { acutPrintf("\nError %s inserting\n", acadErrorStatusText(es)); delete pInsDb; return; }&lt;BR /&gt;
&lt;BR /&gt;
  delete pInsDb;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
The message "Error eNotThatKindOfClass inserting" appears.&lt;BR /&gt;
&lt;BR /&gt;
What could be the reason? This is driving me nuts, since these drawings are created by a large OARX application created by us, with two separate custom entities. How do I probe and find out what is causing this problem? It happens intermittently and never on the development systems, only in customer places. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Fri, 25 Aug 2006 03:57:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/insert-fails-with-enotthatkindofclass/m-p/1746335#M22899</guid>
      <dc:creator>deltacadd</dc:creator>
      <dc:date>2006-08-25T03:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT fails with eNotThatKindOfClass</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/insert-fails-with-enotthatkindofclass/m-p/1746336#M22900</link>
      <description>One thing that I'd try is to do it without the  custom entities. &lt;BR /&gt;
Also check the proxy flags: have you enabled cloning?&lt;BR /&gt;
&lt;BR /&gt;
Henrik Vallgren</description>
      <pubDate>Fri, 25 Aug 2006 09:06:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/insert-fails-with-enotthatkindofclass/m-p/1746336#M22900</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-25T09:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT fails with eNotThatKindOfClass</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/insert-fails-with-enotthatkindofclass/m-p/1746337#M22901</link>
      <description>&amp;gt; The message "Error eNotThatKindOfClass inserting" appears.&lt;BR /&gt;
&lt;BR /&gt;
  I didn't look at the .dwg you attached, but a common cause of this error &lt;BR /&gt;
is a drawing saved in a later version of AutoCAD back to an earlier version &lt;BR /&gt;
file format.  You don't say what AutoCAD version(s) or file format &lt;BR /&gt;
version(s) are involved, so this is just a guess. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft ==&amp;gt; http://www.manusoft.com&lt;BR /&gt;
VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com</description>
      <pubDate>Fri, 25 Aug 2006 10:53:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/insert-fails-with-enotthatkindofclass/m-p/1746337#M22901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-25T10:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT fails with eNotThatKindOfClass</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/insert-fails-with-enotthatkindofclass/m-p/1746338#M22902</link>
      <description>The AutoCAD version is 2006 with SP1 applied. The problem existed before SP1 and still exists after SP1. There is no other file format conversion involved (i.e., everything stays in AutoCAD 2006) and there is also no other version or flavour of AutoCAD involved (just vanilla 2006).&lt;BR /&gt;
&lt;BR /&gt;
I have an application that generates drawings automatically based on certain inputs and this problem crops up after the first couple of runs of the application. There is no special stuff that is happening, simply that the application inserts several existing drawings into the current one based on inputs provided by the user, as part of the drawing generation process. No custom entities, no other complications.&lt;BR /&gt;
&lt;BR /&gt;
Hope someone gets a bright idea of why this is happening. I dont have any hair left to tear! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Thu, 31 Aug 2006 09:03:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/insert-fails-with-enotthatkindofclass/m-p/1746338#M22902</guid>
      <dc:creator>deltacadd</dc:creator>
      <dc:date>2006-08-31T09:03:21Z</dc:date>
    </item>
  </channel>
</rss>

