Get list of parameter NAMES for element

I want to get a list of parameter names for a given element.

Element.Parameters gives me the list of parameters, but it also contains their values, which I think is messing up my List.Contains operation.

The element is a note block and, for legacy purposes, I want to check if the instance has a parameter named “Number”. This tells me if it’s the new version of the family vs the old.

But, when I check for “Number” with a List.Contains on the output of Element.Parameters, it always comes back false, even if the Number param does exist.

How can I get this to come back True when appropriate?

Thanks!
Matt

Parameters.Name is the way to go.

i looked for the BuiltinParameter “Vertikale Ausrichtung” in this Example (sorry its in German)

1 Like

That worked great! Thanks!