Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbObjectId Class
Syntax
C++
class OdDbObjectId;

This class implements memory-resident ObjectId objects for OdDbDatabase objects.

Database objects reference other database objects using ObjectId objects, and a database object pointer can always be obtained from a valid ObjectId objects. The effect of this mechanism is that database objects do not have to reside in memory unless they are explicitly being examined or modified by the user. 

The user must explicitly open an object before reading or writing to it, and should release it when the operation is completed. This functionality allows the Drawings to support partial loading of a database, where ObjectId objects exist for all objects in the database, but the actual database objects need not be loaded until they are accessed. It also allows database objects that are not in use to be swapped out of memory, and loaded back in when they are accessed. ObjectId objects are not written out to a DWG/DXF file. If a reference must be preserved to a database object that has been serialized, the object's database handle (OdDbHandle) should be used.

OdDbObjectIdOdDbObjectIdOdDbObjectIdOdDbObjectIdOdDbObjectIdOdDbObjectIdOdDbObjectId

File: DbObjectId.h 

Module: API Reference 

  • OdDbHandle
  • OdDbObject

 

Corresponding C++ library: TD_Db 

 

Copyright © 2002-2022. Open Design Alliance All rights reserved.