API Reference > Classes > Base Classes > OdBmObjectId Class > OdBmObjectId Methods > OdBmObjectId::getHandle Method
OdBmObjectId::getHandle Method
Syntax
C++
const OdDbHandle& getHandle() const;

Returns the *database* handle of the object referenced by this ElementId object.

Returns NULL if no *database* object is referenced by this ElementId object. 

If this ElementId object has been redirected from another *database* (possibly an Xref), this function returns the handle for this *database*.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.