Share

AcDbHandle

Class Hierarchy

AcDbHandle

C++

class AcDbHandle;

File

dbhandle.h

Description

The AcDbHandle class is the ObjectARX class designed to encapsulate the 64-bit integer handle identifiers that have been in AutoCAD for several releases before R13. A handle uniquely identifies an AcDbObject within a single database and is saved with that object in the database so that it persists from session to session. Handles are not unique across databases, however. In fact, duplication across databases is almost a certainty, since all databases start with the same handseed value of 1 and go up from there.

Remarks

If you have a handle and want the objectId of the object it goes to, then you need to use the AcDbDatabase::getAcDbObjectId() function.

If you have an objectId and want to get the handle of the object it identifies, then you need to open the object and use its AcDbObject::getAcDbHandle() function.

Links

AcDbHandle Constructor, AcDbHandle Methods, AcDbHandle Operators

Was this information helpful?