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.
For example I would like to create view filters to hide sections at certain views. But no matter which category and/or parameter I choose, the node gives null as a result.
I’m unable to upload my dyn file so here’s another screenshot
It looks like you can’t filter by Referencing Sheet. You’ll have to use another parameter, maybe by transferring the Referencing Sheet info to another parameter you can filter by.
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: