AnsweredAssumed Answered

How do you utilize the UserID parameter of AddCommandItem?

Question asked by David Blackburn on Sep 23, 2009
Latest reply on Sep 17, 2012 by jason van clark

Both AddCommandItem and AddCommandItem2 have a UserID parameter that can be specified when defining the menus for your Add-ins. I assume this is to allow the programmer to define their own unique IDs for keeping track of what menu item has been called. However, I have not found any way to define the CallbackFunction that allows this information to be passed into it nor any method to call from within the CallbackFunction that returns the UserID of the particular menu item.

 

Does anyone know how to make use of this UserID parameter? It appears that the CallbackFunction will not work if any parameters are defined for it. I can't think of any reason they would allow you to specify a UserID and then not be able to get it somehow from within the CallbackFunction. Anyone know how this is done?

 

Thanks for your help!

 

Dave Blackburn

CAD fx, Inc.

Outcomes