Gets the AutoCAD Map application object.
Include MapSession.h.
AcMapSession*
AcMapGetSession();
Returns the application object.
Before you can do anything with AutoCAD Map, you must get the application object.
AcMapSession* pSession = AcMapGetSession();