Thanks for the suggestion Nate.
Using the path that Revit takes to get to the command seems like a path prone to issues... If I rename a tab (or a button, or whatever along that path) at some point then I would have to dig around for any such references and modify them as well and that introduces all kinds of potential problems. I was really hoping for something that can be calced at run-time (such as Namespace.Class or some such).
That being said: I did try your suggestion...
From the journal file:
Jrn.RibbonEvent "Execute external command:CustomCtrl_%CustomCtrl_%MBI Tools%Sheet Tools Panel%ButtonOne:MBIToolsetGJO.SheetTools"
I created (in VB):
Dim testID As RUI.RevitCommandId testID = RUI.RevitCommandId.LookupCommandId("CustomCtrl_%CustomCtrl_%MBI Tools%Sheet Tools Panel%ButtonOne") thisUIApp.PostCommand(testID)
This does return an ID...
However, Revit will not accept it:
Anyone else have any ideas on posting an external command?
And as to the first question: If I can find a way to deactivate the viewport while within my function via the API instead of using post command and having to exit my function then the second question becomes purely academic...
-G