Search list by name. not index

hey kids, fairly new to Dynamo here.

So i’m trying to make a script that will create a list of the lengths of pipes from Revit
i thought it would be relativity simple yet when i receive the parameters of 1 pipe, the length is index number 4, but on the second pipe, the index for length is 40! so getitematindex is out.

So my question is, how would i make a list that is created by searching the parameters name (Length), not its index number?

Thanks!

The node GetParameterValueByName should be what you are looking for. Just feed in the string “Length” as the parameterName.

2 Likes

thank you very much! i knew i was missing a node.
cheers

1 Like