View Filter Create Rule - Level Based

I’m trying to create a view filter rule using the Level parameter.
I can do this directly in revit:

but can’t figure out how to make Dynamo do it.

If i change the parameter from “Level” to another one e.g. “Comments” it works fine.

Is the Level parameter not allowed to be used with this node to create a rule?

Also if i spell the word incorrectly e.g. Lvel - it tells me the Parameter doesn’t exist. So I am assuming i have the correct parameter name but node says unable to cast to Revit.Elements.Element


Create Filter Rule.dyn (13.0 KB)

What do you expect "is below" to do here?

It’s the Rule Type (see screen shot of the filter as created in Revit UI ( Post #1) for reference)

…if Level “is Below” FF Level

Right now, within Dynamo, it’s not connected to anything.
To be honest I do not really know FilterRule.CreateRule but I’d say that should definitely connect to something.

It’s not needed right now - it’s just a code block. I’ve replaced the Rule Type as string in the code block using OOTB node “select Rule Type” for troubleshooting to ensure I’ve got a valid rule type being input:

Uploaded amended .dyn with the Rule Type node in lieu of the code block

Create Filter Rule.dyn (13.6 KB)

Still same question stands though - I’m trying to figure out why “Level” is not an acceptable input to the parameter name of filterrule.createrule node