Passing Arguments in Revit Ribbon Elements

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am currently trying to do two things:
1.) Pass the contents of a Revit Textbox to a class.
2.) Pass the name of the selected Revit Combobox to a class.
Some background. I have a Ribbon Toolbar DLL that makes several buttons. I have a second DLL that contains a separate class designated for each button. That works fine.
However, I don't want to have a hundred buttons and a hundred classes. I want to have one class that uses arguments to change the code. So I successfully made a combobox that has all the iterations of the code. I want the user to pick the element in the combobox, then it will execute one class but use its name or value as an argument to differentiate. Also, I want the class to read the contents of the Revit Textbox, but I cannot figure out how to pass that string as well.
Any help would be greatly appreciated.