Also, there is nothing in the text explaining how these events are triggered in the command. Maybe I'm setting this up wrong, but there isn't anything explaining how to properly do this.
I have a DLL that has a bunch of "commands" in it. I have another "application" DLL with an "application" Addin file. My "application" DLL has all the UI RIbbon coding. When someone clicks the buttons that run in the application DLL, it triggers the "Command" DLL by using the class name and DLL path.
There doesn't seem to be a way to pass the arguments to using the Revit Ribbon code.
for example:
PushButton pushButton = panel.AddItem(new PushButtonData( MiscUIText, ButtonTextUI, ButtonDLLPath, DLLNamespace)) as PushButton;
Now I understand that example uses a PushButton, but if I replace it with combobox or textbox, and use a Revit event, I'm still not sure how it will be passed to the DLL.
Am I supposed to code my "Command" coding in the "application" DLL? That way I can use the contents of the Textbox or contents of the Combobox like this:
void ProcessText(object sender, Autodesk.Revit.UI.Events.TextBoxEnterPressedEventArgs args) { // cast sender as TextBox to retrieve text value TextBox textBox = sender as TextBox; string strText = textBox.Value as string; }
This is all strangely confusing.