<?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: Opening other entities during dwgInFields in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/opening-other-entities-during-dwginfields/m-p/1225454#M27668</link>
    <description>That's only intended to be true when the object was intentionally left on
disk rather then read in.

"Owen Wengerd" &lt;OWENW&gt; wrote in message
news:41ec3a69_2@newsprd01...
&amp;gt; &amp;gt; I don't know of any way to tell if an object is not yet read in.
&amp;gt;
&amp;gt;   I've never used it, but would AcDbObjectId::objectLeftOnDisk() be any
&amp;gt; help?
&amp;gt; -- 
&amp;gt; Owen Wengerd
&amp;gt; President, ManuSoft ==&amp;gt; http://www.manusoft.com
&amp;gt; VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com
&amp;gt;
&amp;gt;&lt;/OWENW&gt;</description>
    <pubDate>Mon, 17 Jan 2005 22:53:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-01-17T22:53:43Z</dc:date>
    <item>
      <title>Opening other entities during dwgInFields</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/opening-other-entities-during-dwginfields/m-p/1225451#M27665</link>
      <description>Hi,

A custom entity has to perform its state computations based on other objects 
in the drawing. Everything works until a drawing is saved and loaded again. 
Then I try to open related objects and since they are not in a database yet, 
things get worse.

Stepping in the debugger over the acdbOpenObject, the execution suddenly 
jumps at a breakpoint in some other dwgInFields. Since full call stack is 
missing from DBX DLLs, I cant say that for sure, but no exceptions have 
raised, it seems to be true. So does it mean that DBX runtime tries to load 
recursively the object being opened? Is this a documented behavior one can 
rely on?

Since objects are loaded one-by-one, in dwgInFields I would like to process 
only the objects already have been loaded before the current object. I would 
expect to receive some error code trying to open not-yet-loaded object.

Is that scenario possible in AutoCAD ?

Regards,
Aleksey Karyakin</description>
      <pubDate>Mon, 17 Jan 2005 10:20:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/opening-other-entities-during-dwginfields/m-p/1225451#M27665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-17T10:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Opening other entities during dwgInFields</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/opening-other-entities-during-dwginfields/m-p/1225452#M27666</link>
      <description>For DWG files, we will load recursively.  For DXF we only load sequentially.

For DWG, if you try to open an object that hasn't yet been read in, the
underlying open code will read that object in.

I don't know of any way to tell if an object is not yet read in.

"Aleksey Karyakin" &lt;KARYAKIN&gt; wrote in message
news:41eb9429_2@newsprd01...
&amp;gt; Hi,
&amp;gt;
&amp;gt; A custom entity has to perform its state computations based on other
objects
&amp;gt; in the drawing. Everything works until a drawing is saved and loaded
again.
&amp;gt; Then I try to open related objects and since they are not in a database
yet,
&amp;gt; things get worse.
&amp;gt;
&amp;gt; Stepping in the debugger over the acdbOpenObject, the execution suddenly
&amp;gt; jumps at a breakpoint in some other dwgInFields. Since full call stack is
&amp;gt; missing from DBX DLLs, I cant say that for sure, but no exceptions have
&amp;gt; raised, it seems to be true. So does it mean that DBX runtime tries to
load
&amp;gt; recursively the object being opened? Is this a documented behavior one can
&amp;gt; rely on?
&amp;gt;
&amp;gt; Since objects are loaded one-by-one, in dwgInFields I would like to
process
&amp;gt; only the objects already have been loaded before the current object. I
would
&amp;gt; expect to receive some error code trying to open not-yet-loaded object.
&amp;gt;
&amp;gt; Is that scenario possible in AutoCAD ?
&amp;gt;
&amp;gt; Regards,
&amp;gt; Aleksey Karyakin
&amp;gt;
&amp;gt;&lt;/KARYAKIN&gt;</description>
      <pubDate>Mon, 17 Jan 2005 17:25:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/opening-other-entities-during-dwginfields/m-p/1225452#M27666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-17T17:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Opening other entities during dwgInFields</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/opening-other-entities-during-dwginfields/m-p/1225453#M27667</link>
      <description>&amp;gt; I don't know of any way to tell if an object is not yet read in.

  I've never used it, but would AcDbObjectId::objectLeftOnDisk() be any
help?
-- 
Owen Wengerd
President, ManuSoft ==&amp;gt; http://www.manusoft.com
VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com</description>
      <pubDate>Mon, 17 Jan 2005 22:21:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/opening-other-entities-during-dwginfields/m-p/1225453#M27667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-17T22:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Opening other entities during dwgInFields</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/opening-other-entities-during-dwginfields/m-p/1225454#M27668</link>
      <description>That's only intended to be true when the object was intentionally left on
disk rather then read in.

"Owen Wengerd" &lt;OWENW&gt; wrote in message
news:41ec3a69_2@newsprd01...
&amp;gt; &amp;gt; I don't know of any way to tell if an object is not yet read in.
&amp;gt;
&amp;gt;   I've never used it, but would AcDbObjectId::objectLeftOnDisk() be any
&amp;gt; help?
&amp;gt; -- 
&amp;gt; Owen Wengerd
&amp;gt; President, ManuSoft ==&amp;gt; http://www.manusoft.com
&amp;gt; VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com
&amp;gt;
&amp;gt;&lt;/OWENW&gt;</description>
      <pubDate>Mon, 17 Jan 2005 22:53:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/opening-other-entities-during-dwginfields/m-p/1225454#M27668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-17T22:53:43Z</dc:date>
    </item>
  </channel>
</rss>

