Message 1 of 6

Not applicable
11-14-2012
06:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a large number of ExternalCommands I am using, so instead of creating a different Autodesk::Revit::UI::IExternalCommand for each button, I am trying to have only one class that implements the External Command interface and all buttons call it (by using the same class name whenever I add a pushbutton to the Ribbon)
- Then inside the Execute function I will decide which function to call, the problem is I don't know which button caused the Command, is there a way to know which RibbonItem was pressed ? or get it's name or any data ?
- Another problem with that, can I save some user data to the button, so when it is clicked I can get it, like an internal ID or something like that ?
Solved! Go to Solution.