Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbObjectId::openObject Method (OdDbObjectPtr&, OdDb::OpenMode, bool)
Syntax
C++
OdResult openObject(OdDbObjectPtr& pObj, OdDb::OpenMode openMode = OdDb::kForRead, bool openErasedOne = false) const;

Opens the database object associated with this ObjectId object, in the specified mode. 

 

Parameters
Description
pObj
[out] Smart pointer to opened object
openMode
[in] Mode in which to open the object.
openErasedOne
[in] If and only if true, erased objects will be opened.

Returns eOk if successful, otherwise an Error Code. 

openMode must be one of the following: 

 

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 notify.
Copyright © 2002-2022. Open Design Alliance All rights reserved.