Create View Filter

I want to create a view filter in Revit called “GreenFilter” which I want to use to change colours of all generic models that have Comments set to “Green”.
The program is creating the filter, but I’m getting the “Object Reference not set to instance of an object” error, and when I look at the filter, there is no rule set.

Hi @tmccarrick and welcome, try it like this:

2 Likes

Thank you, that works!

1 Like

I was able to add the filter in Revit, and also to apply it to a view (In this case, “Section 1”.)
I have also set the graphic override so that the fill pattern is “solid” and color is green.
The only thing is, it switches off the visibility! How can I avoid this?

Fixed now - I needed to add the “Boolean” node and set to true

1 Like

@tmccarrick a small but useful hint, when you want to mention someone, you can use the “@” special character.

Hello, I made the filter from the script elie.trad made. It created the rule as it is suppose to but it makes several them. how to I keep it at one

I think it’s late for your case, but let’s hope it helps any other in the same situation. I used list levels to solve this issue:

Thank you!

Outlook-sydq1arz.png