C++
inline Acad::ErrorStatus acdbOpenObject( AcDbObject*& pObj, AcDbObjectId id, AcDb::OpenMode mode = AcDb::kForRead, bool openErased = false );
File
dbObject.h
Description
Opens an AcDbObject for read, write or notify access.
Note: Works with smart pointers.
Parameters
Parameters | Description |
---|---|
pObj | A reference to a pointer to the Object. Set to null on errors. |
id | The id of the object to open. |
mode | Input mode in which to open the object. |
openErased | If true, then open the object even when it is erased. |
Returns
Returns Acad::eOk if the object is opened successfully, otherwise an error code.
Previous File
dbmain.h