<?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: in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/i-can-save-my-custom-entity-but-i-cannot-open/m-p/311259#M39832</link>
    <description>to kittywwxx@sina.com</description>
    <pubDate>Tue, 13 Aug 2002 04:29:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-08-13T04:29:58Z</dc:date>
    <item>
      <title>I can save my custom entity but I cannot open</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/i-can-save-my-custom-entity-but-i-cannot-open/m-p/311256#M39829</link>
      <description>I cannot open my entity in autocad. I am getting an exception error (Null&lt;BR /&gt;
Pointer ?) 0xC0000005 right after the open command. If someone can help me&lt;BR /&gt;
with this, it would be greatly appreciated!&lt;BR /&gt;
&lt;BR /&gt;
//*******************************************&lt;BR /&gt;
** Retrieve entity data into drawing when opening.      **&lt;BR /&gt;
*************************************************************************/&lt;BR /&gt;
Acad::ErrorStatus PSIHollowcore::dwgInFields(AcDbDwgFiler* pFiler)&lt;BR /&gt;
{&lt;BR /&gt;
 assertWriteEnabled();&lt;BR /&gt;
 Acad::ErrorStatus es;&lt;BR /&gt;
&lt;BR /&gt;
 // Call dwgInFields from AcDbEntity&lt;BR /&gt;
 if ((es = AcDbEntity::dwgInFields(pFiler)) != Acad::eOk) {&lt;BR /&gt;
  return es;&lt;BR /&gt;
 }&lt;BR /&gt;
&lt;BR /&gt;
 // Read version number.&lt;BR /&gt;
 Adesk::UInt16 version;&lt;BR /&gt;
 pFiler-&amp;gt;readItem(&amp;amp;version);&lt;BR /&gt;
 if (version &amp;gt; VERSION_PSIHOLLOWCORE)&lt;BR /&gt;
  return Acad::eMakeMeProxy;&lt;BR /&gt;
&lt;BR /&gt;
 // Read the data members.&lt;BR /&gt;
 switch (version)&lt;BR /&gt;
 {&lt;BR /&gt;
 case (1):&lt;BR /&gt;
  int nShape, nBoundary;&lt;BR /&gt;
  pFiler-&amp;gt;readItem(&amp;amp;nShape);&lt;BR /&gt;
  pFiler-&amp;gt;readItem(&amp;amp;nBoundary);&lt;BR /&gt;
  pFiler-&amp;gt;readItem(&amp;amp;m_dLength);&lt;BR /&gt;
  pFiler-&amp;gt;readItem(&amp;amp;m_dWidth);&lt;BR /&gt;
  pFiler-&amp;gt;readItem(&amp;amp;m_dThickness);&lt;BR /&gt;
&lt;BR /&gt;
  AcGePoint3d temp;&lt;BR /&gt;
  for(int i = 0; i &amp;lt; nShape; i++)&lt;BR /&gt;
  {&lt;BR /&gt;
   pFiler-&amp;gt;readItem(&amp;amp;temp);&lt;BR /&gt;
   m_ptsShape.append(temp);&lt;BR /&gt;
  }&lt;BR /&gt;
&lt;BR /&gt;
  for(i = 0; i &amp;lt; nBoundary; i++)&lt;BR /&gt;
  {&lt;BR /&gt;
   pFiler-&amp;gt;readItem(&amp;amp;temp);&lt;BR /&gt;
   m_ptsBoundary.append(temp);&lt;BR /&gt;
  }&lt;BR /&gt;
&lt;BR /&gt;
  break;&lt;BR /&gt;
 }&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 return pFiler-&amp;gt;filerStatus();&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
/*************************************************************************&lt;BR /&gt;
** Save entity object to dwg when saving.        **&lt;BR /&gt;
*************************************************************************/&lt;BR /&gt;
Acad::ErrorStatus PSIHollowcore::dwgOutFields(AcDbDwgFiler* pFiler) const&lt;BR /&gt;
{&lt;BR /&gt;
 assertReadEnabled();&lt;BR /&gt;
 Acad::ErrorStatus es;&lt;BR /&gt;
&lt;BR /&gt;
 // Call dwgOutFields from AcDbEntity&lt;BR /&gt;
 if ((es = AcDbEntity::dwgOutFields(pFiler)) != Acad::eOk) {&lt;BR /&gt;
  return es;&lt;BR /&gt;
 }&lt;BR /&gt;
&lt;BR /&gt;
 // Write version number.&lt;BR /&gt;
 pFiler-&amp;gt;writeItem((Adesk::UInt16) VERSION_PSIHOLLOWCORE);&lt;BR /&gt;
 pFiler-&amp;gt;writeItem(m_dLength);&lt;BR /&gt;
 pFiler-&amp;gt;writeItem(m_dWidth);&lt;BR /&gt;
 pFiler-&amp;gt;writeItem(m_dThickness);&lt;BR /&gt;
&lt;BR /&gt;
 int nShape = m_ptsShape.length();&lt;BR /&gt;
 int nBoundary = m_ptsBoundary.length();&lt;BR /&gt;
 pFiler-&amp;gt;writeItem((Adesk::UInt16) nShape);&lt;BR /&gt;
 pFiler-&amp;gt;writeItem((Adesk::UInt16) nBoundary);&lt;BR /&gt;
&lt;BR /&gt;
 for(int i = 0; i &amp;lt; nShape; i++)&lt;BR /&gt;
 {&lt;BR /&gt;
  pFiler-&amp;gt;writeItem(m_ptsShape&lt;I&gt;);&lt;BR /&gt;
 }&lt;BR /&gt;
&lt;BR /&gt;
 for(i = 0; i &amp;lt; nBoundary; i++)&lt;BR /&gt;
 {&lt;BR /&gt;
  pFiler-&amp;gt;writeItem(m_ptsBoundary&lt;I&gt;);&lt;BR /&gt;
 }&lt;BR /&gt;
 return pFiler-&amp;gt;filerStatus();&lt;BR /&gt;
}&lt;BR /&gt;
//*******************************************&lt;BR /&gt;
m_ptsShape, and m_ptsBoundary are both AcGePoint3dArray objects. Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Mike B&lt;/I&gt;&lt;/I&gt;</description>
      <pubDate>Thu, 08 Aug 2002 15:13:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/i-can-save-my-custom-entity-but-i-cannot-open/m-p/311256#M39829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-08T15:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: I can save my custom entity but I cannot open</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/i-can-save-my-custom-entity-but-i-cannot-open/m-p/311257#M39830</link>
      <description>I changed the order of some events in the dwgOutFields&lt;BR /&gt;
&lt;BR /&gt;
 int nShape = m_ptsShape.length();&lt;BR /&gt;
 int nBoundary = m_ptsBoundary.length();&lt;BR /&gt;
 pFiler-&amp;gt;writeItem((Adesk::UInt16) nShape);&lt;BR /&gt;
 pFiler-&amp;gt;writeItem((Adesk::UInt16) nBoundary);&lt;BR /&gt;
 pFiler-&amp;gt;writeItem(m_dLength);&lt;BR /&gt;
 pFiler-&amp;gt;writeItem(m_dWidth);&lt;BR /&gt;
 pFiler-&amp;gt;writeItem(m_dThickness);&lt;BR /&gt;
&lt;BR /&gt;
This still does not work.&lt;BR /&gt;
Any ideas?</description>
      <pubDate>Thu, 08 Aug 2002 15:17:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/i-can-save-my-custom-entity-but-i-cannot-open/m-p/311257#M39830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-08T15:17:13Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/i-can-save-my-custom-entity-but-i-cannot-open/m-p/311258#M39831</link>
      <description>hi, Guy!no one will bother to told you any word that really&lt;BR /&gt; values, unless you pay to AutoDesk!&lt;BR /&gt; you are lucky enough that I 've got lots and lots of experience of &lt;BR /&gt; customize entity, so if you do trust me, send your &lt;BR /&gt;code and I'll examine it. Think about it, I am the one&lt;BR /&gt;who really wanna help you.</description>
      <pubDate>Tue, 13 Aug 2002 04:29:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/i-can-save-my-custom-entity-but-i-cannot-open/m-p/311258#M39831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-13T04:29:24Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/i-can-save-my-custom-entity-but-i-cannot-open/m-p/311259#M39832</link>
      <description>to kittywwxx@sina.com</description>
      <pubDate>Tue, 13 Aug 2002 04:29:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/i-can-save-my-custom-entity-but-i-cannot-open/m-p/311259#M39832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-13T04:29:58Z</dc:date>
    </item>
  </channel>
</rss>

