I just realized you’re trying to create a view filter for views… that won’t work. What are you trying to do exactly?
A view filter is a view specific filter for elements in that view. You don’t have view elements visible in a view.
I’m a little stumped. It might be that you can’t filter sections that way through the API. You can filter by Sheet Name and Number manually but using Dynamo you get an error saying the parameter doesn’t exist.
The code works. I can create a filter for Sections by View Name. You’re just using parameters that don’t apply to all elements of the category. You can see what I’m talking about if you pull the python code out of the custom node and troubleshoot the errors it returns.
Interesting. I had noticed that the parameter name wasn’t working so I tried other options as well. That’s when it started giving me errors that the parameter didn’t exist for the category. Now I’m not sure what the actual problem is, but I’m glad you got it figured out.
I had to give up when I was trying to use that node. I was trying to setup view filters for selected worksets in the model. I finally used the FilterRule.ByRuleType to setup the ParameterFilterElement.ByRules Node: