API Reference > OdDb Classes > OdDbObjectId Class > OdDbObjectId Methods > OdDbObjectId::originalDatabase Method
OdDbObjectId::originalDatabase Method
Syntax
C++
OdDbDatabase* originalDatabase() const;

Returns the original database with which this ObjectId object is associated.

If the object associated with this ObjectId object has been redirected to a host database from an Xref database, this function returns a pointer to the Xref database. 

Otherwise, it returns a pointer to the database with which this ObjectId object is associated.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.