Share

acdbValidateDbConsistency Function

C++

Acad::ErrorStatus acdbValidateDbConsistency(
    AcDbObject* pHostObject, 
    AcDbDatabase* pDatabase, 
    Acad::ErrorStatus es = Acad::eOk
);

File

dbxutil.h

Description

Verifies that an object does not have cross database references. For database resident objects the database will be compared with the object's database. For non database resident objects the object's 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
pDatabase The target database 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::ErrorStatus.

Was this information helpful?