C++
AcDbObjectPointerBase( AcDbObjectId objId, AcDb::OpenMode mode, bool openErased );
Description
This constructor is protected, and intended for derived classes to implement their constructors.
Opens the object objId with the specified mode. In effect, this function has the same effect as calling acdbOpenObject. This constructor records the error status from acdbOpenObject(), which should be checked using openStatus() before using object() or operator->(). This constructor should be called by derived classes that want to open the object by ID.
Parameters
Parameters | Description |
---|---|
objId | Input object ID of the object to open |
mode | Input mode in which to open the object |
openErased | Input Boolean indicating whether it's OK to open an erased object |