Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDgElementId::safeOpenObject Method
Syntax
C++
OdDgElementPtr safeOpenObject(OdDg::OpenMode openMode = OdDg::kForRead, bool openErasedOne = false) const;

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

 

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

Returns a SmartPointer to the opened object.

openMode must be one of the following: 

 

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