Change view filter condition from OR to AND

Hello everyone,

I am working on a dynamo script that applies view filters to certain views within a Revit document. I am able to create the view filters, however I am not able to change the condition of the view filters. It seems that by default this is set to OR, and I need it to be set on AND.

Using the Revit LookUp I was able to find the ‘LogicalAndFilter’, so it looks like it should be possible to change it. But I can’t figure out how.

Did you try with ParameterFilter.ByRule from Orchid v. 230

image

Great, thank you. I will take a look at that package

Any idea about how to add a Set of rules to a Filter?