Issue with Assigning Different Parameter Values to Multiple Elements

I have extracted parameter values from elements and need to assign these values to different parameters in Revit. I have already created the Dynamo script, and it works correctly when applied to a single element.

However, when I try to apply the same process to multiple elements, the same value is being assigned to all elements instead of the corresponding values.

Could anyone please help me identify the issue and advise how I can assign the correct value to each element when processing multiple elements?

Thank you in advance for your help.



Lacing and list level issue. Worth checking the primer so you get the concepts as you’ll struggle often without a good grasp on it - What's a List | Dynamo.

Set the list level for ‘element’ to @L1, and the level for value to @L2, then set lacing to longest.

Hi sir, thank you so much for your support.
I have done that, it’s working now, but i can’t understand the list level l, sir

List levels tell Dynamo to treat the inputs to a node as “sets” to process.

By using @L1 on the element you’re telling Dynamo to treat each element as it’s own subset.
By not providing a level to parameterName you’re telling Dynamo to use the default which is “everything” on the outter most list which happens to be @L2.
By using @L2 on the values you’re telling Dynamo to process the sublists on each associated element.
By using Longest lacing on the node you’re telling it reuse the items in the shortest list (the number of @L2 lists for parameterName) over and over until the next shortest list (both the element and value lists) have been processed.

I recommend watching the Dynamo Office Hours on lists and lacing (4, 5 and 6), as well as reviewing the primer for more info.

Noted sir. Thank you