Alternative for Spectype

Good morning,
I’m trying to do in a code block what we can do with the Pec Type node. but I can’t do it with this "Revit.Elements.SpecType(“lenght”).
Does anyone have an idea of ​​the correct writing?

1 Like

If I am understanding correctly, you are almost there see below. Be aware that the parameter names are case sensitive.

1 Like

do you think that it could be possible with your formula to use it for the creation of a global parameter

Capture

Certainly. Get the spectype of an existing parameter and create a new parameter using that spectype.

2 Likes