OdDbHostAppServices ?

How do I get an instance of OdDbHostAppServices in Bricscad?

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.

  • DoH! There it is, right under my nose :) Thank you.Regarding BRX, I am looking forward to trying it out.

This discussion has been closed.