Filter Rebar by "Rebar Shape"

Hi everyone,

I’m having some error with a node,
(Filter
-FilterRule.ByRuleType -) actually it is a very easy script, but I can’t make it works…
I would like to create a filter in revit using the - Shape - parameters, the fun fact is that the script kinda works, so it creates the filter, but can not add the value on it…
What I understand is that the “Value” input in the “Rule” nodes, needs a string to works…
Anyone having the same issue, likely find a solutions?

What I’ve done in the script is very easy, from the category I got the parameter, from it I get the value and then change it in string, all of it to be eaten by the last node - ParameterFilterElement.ByRules -

Thanks to those who can help me