Inventor does not run any UserInputEvents uiEvents OnTerminateCommand / OnActivateCommand when assembly has been selected on drawing's model view and standard BOM dialog opened that way. I have confirmed this bug using SDK's event watcher.
However events are laumched when active document is Inventor model or assembly.
This problem exists atleast in Inventor 2009.