Share

acdbOpenObject

C++

ACDBCORE2D_PORT Acad::ErrorStatus acdbOpenObject(
    AcDbEntity *& pEnt, 
    AcDbObjectId id, 
    AcDb::OpenMode mode = AcDb::kForRead, 
    bool openErased = false
);

File

dbmain.h

Description

Use this version of acdbOpenObject() to open an AcDbEntity, which can be opened without calling desc() to get an AcRxClass descriptor. The openErased parameter controls whether erased entities will be opened.

Parameters

Parameters Description
pEnt Output pointer to the opened entity
id Input object ID of the entity to open
mode Input mode in which to open the object
openErased Input Boolean indicating whether it's OK to open an erased object

Returns

Returns Acad::eOk if the object is opened successfully, otherwise an error code.

Was this information helpful?