Filter Condition Setting

For the “Add Parameter Filter” component, is there a way to switch the “AND”/“OR” condition for the Revit filter it creates? Currently it seems to be “AND” by default.
image

Yes, use the Logical OR Filter

Thank you Japhy!

This fits on lots of scenarios, but if, for example, the amount of inputs for “OR Filter” is dynamic or there are 20 inputs (happens when using sheet number as a parameter), it would be great to have a “switch” to control the filter condition at the rule level. So users don’t need to copy/paste each filter before the “OR Filter”.

Use the Union Filter in that case

Awesome, thousands thanks!

I did some further testing of the “Add Parameter Filter” node. It is super cool.

However, I found it automatically add an integer after the true name and doesn’t update when the inputs are updated. Not sure what the issue is.


RiRTestFile.rvt (400 KB)
Test_AddParameterFilter.gh (46.3 KB)

That’s the element tracking, switching it till it gets to 2 and then back again will clear it. I’ll file a bug report.

1 Like