C++
inline AcTransactionManager* acTransactionManagerPtr();
File
actrans.h
Description
This function returns a pointer to the transaction manager for the current document in AutoCAD. This function is only available in AutoCAD, not in RealDWG.
actrTransactionManager is not actually a function and is instead a #define in the header actrans.h:
#define actrTransactionManager acTransactionManagerPtr()
The acTransactionManagerPtr() function is an inline global function that is also defined in the actrans.h header file.
acTransactionManagerPtr() returns the same pointer that the workingTransactionManager() method of the acdbHostApplicationServices class does, but it returns it as a pointer to the true class, AcTransactionManager, whereas workingTransactionManager() returns a pointer to the base class, AcDbTransactionManager. In RealDWG, the transaction manager is an AcDbTransactionManager, so workingTransactionManger() must return a base class pointer in order to work correctly in both environments.