API Reference > OdDg Classes > OdDgElementId Class > OdDgElementId Methods > OdDgElementId::originalDatabase Method
OdDgElementId::originalDatabase Method
Syntax
C++
OdDgDatabase* 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.