Share

AcDbSmartObjectPointer::AcDbSmartObjectPointer (AcDbObjectId, AcDb::OpenMode, bool, bool) Constructor

C++

AcDbSmartObjectPointer(
    AcDbObjectId objId, 
    AcDb::OpenMode mode = AcDb::kForRead, 
    bool openErased = false, 
    bool openOnLockedLayer = false
);

Description

Assures that the object underneath objId is accessible in the specified open mode. In effect, this function has the same effect as calling acdbOpenObject, except that open conflicts will not be a cause of failure, and the object open state will be automatically reverted to its prior state when the instance goes out of scope, or the close() or acquire() member is invoked on the instance.

Parameters

Parameters Description
objId Input object ID of the object to obtain access to
mode Input mode in which to access the object
openErased Input Boolean indicating if it's OK to access an erased object
openOnLockedLayer Documentation to come

Previous Declaration

AcDbSmartObjectPointer(

AcDbObjectId objId,

AcDb::OpenMode mode,

bool openErased = false,

bool openOnLockedLayer = false

);

Links

AcDbSmartObjectPointer Template

Was this information helpful?