Filling parameter values using a shared value in another parameter

Hi !

I am a beginner to Dynamo, I only know some basics, I would like some help with this one!

Here is what I would like to do using a dynamo script.

In this exercise, I would like to populate a parameter (X) that I created belonging to the doors with values that I would bring from elements (speciality equipments) that are in a linked model.

The condition to fill the parameter would be, if the value of parameter 1 (Door ID) is equal to the value of parameter 2 (Door ID manually filled in the linked model in the specialty equipments) then fill the parameter (X)

What did you try so far yourself?

Hi bvs1982, thank you for the answer, here is what I tried

I choose the Doors ID to be my shared values with the specialty equipments in the linked file. with these values, I would like to say If the numbers matches, then fill the right value from the nodes up in my screenshot

A Dictionary might be the way to go.
Create a Dictionary from the Specialty Equipment (Families) from the Linked Model.

Something like this

NB
For this to work the List for the Dictionaries need to have the same length!
So this won’t work if one of the Specialy Equipment doesn’t have a value
(at the named Parameter)*.

*If you have two Lists of unequal length it is possible to make them equal.

1 Like

It worked! thank you very much bvs1982

I used this node from Springs