Message 1 of 4
Opening other entities during dwgInFields
Not applicable
01-17-2005
02:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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