When creating filters using dynamo, the FilterRule.ByRuleType node (or maybe it’s the ParameterFilterElement.ByRules node) will default to OR (Any rule may be true). If I manually create a new filter in revit, or if I clear filter rules using dynamo, the default rule is AND (All rules must be true). Is there a way to create a filter in dynamo with AND as the default setting? Thanks
Also posted a question about this today, you’ve worded it better. Pre-Revit 2019 the script works fine, but now that we have the AND / OR option it always defaults to OR…
I hope my subject line wasn’t confusing but I am looking for information pertaining to filters / filter rules to modify the visibility and graphics of elements. Thanks
This has been passed for long time since you ever posted this creating filter rule by dynamo setting to “OR” as default.
Archilab nodes could make your task worked without Python coding, please see image below.
Nodes underlining in red are made by Archilab.
after that you could feed the “viewFilter” into “parameterFilter” in “View.SetFilterOvewrrides” node to complete your visibility and graphics of elements task.