Add Selection Filters to views

revit

#1

Hello all,

I am trying to add a Selection Filter to a list of views. When I pass a Parameter Filter to View.SetFilterOverrides everything works great. If I change nothing but give it a single Selection Filter it gives me this “Warning: One or more of the input types are not matching. Couldn’t find a version of SetFilterOverrides that takes arguments of type (__array,__array,__array,__array)”

Do any of you know anything about this or know a work around?

Thanks,


#2

It seems this node doesn’t appear to accept SelectionFilterElements anyway:
image

API Docs show they are two separate classes, but both fall under FilterElement Class:

ParameterFilterElement Class
SelectionFilterElement Class

Should be able to do it with a Python script using the SetFilterOverrides Method, or maybe there is a package out there that has a node for this already that I’m unaware of :slight_smile:


#6

@awilliams is correct that this node doesn’t accept Selection Filters. I posted a request to GitHub so that the devs are aware of your wish:

https://github.com/DynamoDS/DynamoRevit/issues/1873

Cheers!