Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
OdDAIObjectId::openObject Method
Syntax
C++
OdDAI::ApplicationInstancePtr openObject(OdDAI::OpenMode openMode = OdDAI::kForRead, bool openErasedOne = false) const;

Opens the database object referenced by the identifier in a specified mode.

Parameters
Description
openMode
[in] An open mode.
openErasedOne
[in] A flag that determines whether erased objects are open (equal to true) or not (equal to false).

Returns a smart pointer to the entity instance if the object was successfull opened; otherwise, the method returns a NULL smart pionter.

The open mode parameter must have one of the following values:

Name
Value
Description
OdDb::kForRead
0
Object is open for reading.
OdDb::kForWrite
1
Object is open for reading and/or writing.
OdDb::kForNotify
2
Object is open for notifying.
Copyright © 2002-2022. Open Design Alliance All rights reserved.