This was discussed here: Create and add view filter (ParameterFilterElement)
Also, Dynamo now has OOTB nodes that can do that so no need for Python.
This was discussed here: Create and add view filter (ParameterFilterElement)
Also, Dynamo now has OOTB nodes that can do that so no need for Python.