- I hesitated between updating the previous post directly or posting a new post. I finally decided to make it a new post so that it’s not too long to read. I will only develop on new stuff here.
I have updated the UI.MultipleInputForm so it could handle more input types:
Here is the Input type codification:
1. Revit Selection Inputs:
The Revit element, face, and edge selection inputs are pretty straight forward. These type of inputs generate a button that allows interaction with the Revit model. The selections are then output as lists. Here is an example with the “se” (select Revit element) input type:
2. ComboBox Inputs:
String and Number lists:
The combo box is the only input that needs special treatment, because there is no codification. In order to create a drop-down list input in the form, you just need to feed your drop down list items as a one level nested list within the InputTypes list. The list structure is very important here. The List.Create Node is perfect for creating the right input:
You can- of course- add as many drop down lists as you want:
Revit Element lists:
In case you use Revit elements as items for your drop down list, the node will display the name of the elements, and return the Revit element as an output:
3. Form features:
I have also added a couple of features to the form. I followed Brendan Cassidy’s example and deleted the maximise/minimise and resize options. I also set the form so that it would always be in the forefront, this way it will never be hidden which could prevent Dynamo and Revit from working.
This node should make it a little easier for those allergic to Dynamo to benefit from its power!
Here’s the code to the node: