Share

AcDb Macros (WIN)

Description

Describes macros specific to AcDb classes.

Macros

Macro Description
ACDB_AUDIT_RETURN ACDB_AUDIT_RETURN(a pAuditInfo, Acad::ErrorStatus baseEs, Acad::ErrorStatus localEs, bool boilDownLocalStatus)This macro encapsulates the recommended "contract" for arbitrating audit return statuses between parent class status and local class status. If either the parent class audit member fails or the local audit member fails, the object audit fails, with the parent class failure taking precedence. The last parameter is a bool which specifies whether to "boil down" failure status to the recommended audit return values or return the direct local status. If this member doesn't supermessage a parent class, then pass in Acad::eOk for BaseEs.
acdbCurDwg This function is deprecated and has been replaced with the global curDwg. It is #defined in migrtion.h for transition purposes only. Include both dbapserv.h as well as migrtion.h in your application. The dbapserv.h header file is needed because it defines acdbHostApplicationServices().Developers should call acdbHostApplicationServices()->workingDatabase() instead of acdbCurDwg() when they want to refer to the current database.

Was this information helpful?