API Reference > OdDb Classes > OdDbObject Class > OdDbObject Methods > OdDbObject::composeForLoad Method
OdDbObject::composeForLoad Method
Syntax
C++
virtual void composeForLoad(OdDb::SaveType format, OdDb::DwgVersion version, OdDbAuditInfo* pAuditInfo);
Parameters 
Description 
OdDb::SaveType format 
[in] File type.  
OdDb::DwgVersion version 
[in] Drawing version of file loaded.  
OdDbAuditInfo* pAuditInfo 
[in] Pointer to an OdDbAuditInfo object. Can be Null. Not Null if drawing is being loaded in Recover mode. If so, audit() will be called later. 

After loading from file, performs necessary actions which require accessing other Database objects. For example, processing round-trip data. 

 

If an object in its dwgInFields() method accesses other database objects, it's non-thread-safe. Such objects can't be loaded in MT mode. To enable MT loading of custom objects, its dwgInFields() should not access other database objects. Such actions should be performed in composeForLoad(). composeForLoad() is called in single-thread mode after all thread-safe objects are loaded (their dwgInFields() were called in MT mode). 

Being overridden in custom classes, the function first should call the parent class method. Parent class implementation takes care of parent class round-trip data and other actions which require access to other objects.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.