Dynamo Player select model element only if boolean is true

Is there a way to only ask for a user selection of elements when a toggle is set to true by the user? I now want to ask if all roofs are modelled in revit with a roof family otherwise the user will have to select them manually. But now i need to select something to run the script even if i dont need the element selection.

Not natively in Player. The inputs are created with the graph and required to run, so there’s no way to “turn off” or ignore an input. You could create your own UI with Data-Shapes to get around this though. Either by ignoring one input or by prompting the selection input after, and only if, the toggle is set to true.

1 Like

I’d just make two different graphs, one for with and one for without.

1 Like