OdDbHostAppServices ?
Comments
-
That's one of the many differences between DRX and ARX:In ARX, you have the global function acdbHostApplicationServices()In DRX, you have no similar global function, instead you need to getit through an OdDbDatabase instance: OdDbDatabase::appServices()To get the active drawing database, use this:OdApDocManager* pOdApDocMan = odapDocManager();OdApDocument* pOdApDoc = pOdApDocMan->curDocument();OdDbDatabase* pOdDb = pOdApDoc->database();OdApDocManager and OdApDocument is defined in our own extension headers od_doc_man.h, next to sds.hThat's why I strongly recommend to use BRX instead of DRX: BRX takescare of all these annoying differences.
0 -
DoH! There it is, right under my nose Thank you.Regarding BRX, I am looking forward to trying it out.
0
This discussion has been closed.