C++
Acad::ErrorStatus acdbValidateDbConsistency( AcDbObject* pHostObject, AcDbObjectId objId, Acad::ErrorStatus es = Acad::eOk );
File
dbxutil.h
Description
Verifies that an object and an objectId belong to the same database, and that no cross database references exist. For database resident objects the database of the objectId will be compared with the object's database. For non database resident objects the objects intended database will be used. If the object has no intended database, it will be set by this function.
Parameters
Parameters | Description |
---|---|
pHostObject | The object holding the object Id. |
objId | The object Id to validate. |
es | Optional. Previous Acad::ErrorStatus. That allows you to compute multiple results and chain them while preserving the first bad error status. |
Returns
Acad::eOk if the operation completed sucessfully; Acad::eWrongDatabase if the databases are different; the 'es' argument directly if es != Acad::eOk.