AcMapODContainer class

Land Desktop Development ARX CPP SDK

 

AcMapODContainer class

This class is defined in MapArxApi.h.

Object data about a source drawing is stored in object data tables that are part of the drawing. The ODContainer class serves as a container for object data tables and their components.

The AutoCAD Map ObjectARX API creates an instance of AcMapODContainer when you open a project. You get a pointer to this instance by calling AcMapProject::GetODContainer to access the project's object data tables. Do not attempt to delete this pointer.

Do not subclass from this class.

The following code fragment gets a pointer to the instance of AcMapODContainer and accesses the project object data tables with it. For simplicity, routine error checking is not shown.

AcMapSession *mapApi = NULL;
AcMapProject *pProj = NULL;
AcMapODContainer *pODCont = NULL;
AcMapODTable *pODTable = NULL;
 
mapApi = AcMapGetSession();
mapApi->GetProject(pProj);
pProj->GetODContainer(pODCont);
pODCont->GetODTable(pODTable, "Zones");