Share

AcDbDatabase::dbPtrFromId

C++

static ACDBCORE2D_PORT AcDbDatabase * dbPtrFromId(
    int64_t nId
);

Description

Gets the database pointer from a db runtime id.

Parameters

Parameters Description
nId Input runtime db id, should be > 0.

Returns

The address of the database referred to by the id, if valid.

Otherwise returns nullptr, indicating no such database.

Remarks

Useful when caching database references. Db ids are only valid for the current process.

Links

AcDbDatabase Class

Was this information helpful?