Keys and Values issue

Dictionary.ByKeysValues works great when I push in a list generated by List.Create. But does it not work when I push a list from an Element.GetParameterByName list. Why did “search keys” only pick up 1.25?

Check the object type for the parameter values.

As @Nick_Boyts said, it is most likely the values in your Keys are Integrers and the values coming from the parameter are doubles. Different nodes and different versions of Dynamo treat them as different things and therefore they don’t technically match.

Try it if you multiple all the values from both the Parameter list and the Keys List by 1.0 before putting them into the dictionary.

1 Like

Yes, realized that after I sent the question in to the forum.

Worked great!