Hi everyone,
I’m trying to create a parameter filter in Revit through Dynamo.
The idea is to make the filter work with AND (All rules must be true) instead of OR (Any rule may be true).
Here’s what I did so far:
The filter gets created, but inside Revit it always shows as OR (Any rule may be true) (see first screenshot).
What I really need is AND (All rules must be true), just like when I create the filter manually inside Revit (see second screenshot).
I’ve also attached my Dynamo graph (third screenshot).
What I’ve tried:
-
Nesting lists ([[rule1, rule2]]
) before sending them into ParameterFilterElement.ByRules
.
-
Using List.Create
in different ways.
-
Grouping the rules into a single set.
But Dynamo keeps generating the filter as OR.
Question:
Has anyone managed to create a ParameterFilterElement in Dynamo that shows up as AND (All rules must be true)
in Revit?
I need both conditions to be true for the filter to apply.
If you have an example using Code Block
, LogicalAndFilter
, or any other practical solution, I’d really appreciate it!
Thanks in advance 
Hi Luiz, welcome 
The node that creates the filter is hard coded to use LogicalOrFilter
[see GitHub here if interested] so you will have to either manually adjust after (Boo!) or try using archilab nodes which has FilterSet.CreateAndSet. Note you will have to use all archilab nodes in the workflow
2 Likes
Hi Mike.Buttery, thank you so much for your reply and for pointing me in the right direction
.
Unfortunately, in my case I can only use the native Dynamo nodes because this is for a competition, and the rules don’t allow external packages or custom nodes. Also, I’m still a beginner in Dynamo, so I’m not confident yet on how to work with GitHub directories or custom code.
That’s why I was trying to achieve this with the original Dynamo nodes only.
Thanks again for your time and help!
Oh that sounds fun - can you shed any light on what the competition is?
1 Like
It really is!
I’m participating as an evaluator in WorldSkills Brazil, which is the national stage that selects competitors for WorldSkills Shanghai 2026.
The skill is Digital Construction (BIM), and one of the modules focuses on automation, where we have to use Dynamo for visual programming tasks.
That’s why I’m trying to figure out how to achieve this using only the native Dynamo nodes — since no external packages are allowed in the competition.
2 Likes
Gotcha - the AND filter will be inaccessible at creation without custom scripting then, as it is hard coded in the out of the box nodes. You could look to set it after the fact as noted by @Mike.Buttery, but I am not sure how easy that is without either scripting or custom packages.
I’m pleasantly surprised to hear about this as watching users hack and compete is always good to see. Good luck!
3 Likes