#include // acadErrorStatusText
#include
#include // AcDbCircle
#include
#include // asDblArray
/*
* Register an application for xData
*
* In :
* AcDbDatabase* pDb : Database
* const char* pAppName : application name
* Adesk::Boolean exclude :
* If exclude == Adesk::kTrue, then xData associated with
* this AcDbRegAppTableRecord will not be saved when the
* drawing is saved as a release 12 (R12) drawing.
* If exclude == Adesk::kFalse, the data will be saved
* during a saveAsR12 operation.
*/
Acad::ErrorStatus
registerApp(AcDbDatabase* pDb, const char * pAppName,Adesk::Boolean exclude =
Adesk::kFalse)
{
AcDbRegAppTable* pAppTable;
Acad::ErrorStatus es;
// get the RegAppTable
if((es = pDb->getRegAppTable(pAppTable,AcDb::kForWr