Close

Relief for ODA Team in Ukraine

Learn more
ODA BimRv SDK
OdBmObjectId::safeOpenObject Method
Syntax
C++
OdBmObjectPtr safeOpenObject() const;

Opens the *database* object associated with this ObjectId object, in the specified mode, or throws and exception if unsucessful.

Returns a SmartPointer to the opened object. 

openMode must be one of the following: 

table Name Value Description OdBm::kForRead 0 Object is open for reading. OdBm::kForWrite 1 Object is open for reading and/or writing. OdBm::kForNotify 2 Object is open for notify.

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