Turn ON view filter visibility?

I was able to turn off the visibility of a filter in views but I want the ability to turn it back on later. I can’t seem to find a way to do this.

Apply template properties, hmm, there is no node for that one yet (as far as i can tell)
There is workarounds for that, its one the forum here.
I bet you can find it

Good luck )

You can remove a filter from a view with the RemoveFilter() method.
RemoveFilter Method (revitapidocs.com)

You can turn filters on and off with the SetFilterVisibility() method.
SetFilterVisibility Method (revitapidocs.com)

The GetFilterVisibility() method will give you the current setting.

On my list of things to do, learn a code to use inside dynamo…

Hello Evan…something here could probably work…

Thank you! I tried using View.SetFilters before but couldn’t get it to work. I was missing the View.FilterOverrides.