Set Parameter Values for Multiple Elements

Hi all,

I want to set multiple parameter values for multiple parameters to a group of elements in dynamo. I have tried it with list lacing similar to this tutorial:

https://forum.dynamobim.com/t/thoughts-about-writing-multiple-parameter-values-into-multiple-parameters-of-multiple-elements/80326

Somehow I cant get the List Lacing right or maybe I am missing a step. The structure of my Lists ist the following:

Elements:
[[e1,e2,e3,…][e1,e,2,…][empty]] - Lists can vary depending on previous element filter.

Parameters
[p1,p2,p3,p4,p5,p6]

Values
[[v1,v2,v3,v4,v5,v6][v1,v2,v3,v4,v5,v6][…]] - Each List of Values belongs to a the List with elements at the same index. Each value v1-v6 belongs to the same parameter p1-p6.

The only difference to the tutorial is that I have the the elements in the sublist and not a single list. The List of Elements can be empty but parameters and values are never empty.

You can see the relevant Part of the Script in the attached picture. (Elements are yellow, Paramets are orange and values are blue)

Does anybody know how to solve this? I believe it is possible without an extra package, I am just missing something. I could have probably done it with Python by now but I want to use nodes in Dynamo.

Thanks in advance and kind regards,

Nico

Hi,

So my question is what is the reasoning your elements are in a sublist? It’s not totally clear to me because you could get by this by having a flat list of elements so you can have your element.set node look like this.

Thanks,

Hi Patrick,

Thanks for your reply. The reason is that each sublist of Elements recieves a different set of values. That is why the values are also in sublists. Each sublist of values corresponds to a sublist of Elements.

The sublists of Elements are generated from different Filter criteria based on an excel table.

Kind regards,

Nico

Hi @nico.oerter, could you post the entire graph? When exporting Image, please ensure that one node is clear and readable.

Hi,

yes I can share the graph. See the Picture here, I hope that it is better:

Here is the Part where I have the Problem:

I have also attached this picture of the Excel Table. I hope that this will make it more clear what my goal is.

It’s because of list lacing and leveling. Try experimenting with list lacing. or if you provide sample file with the expected result that will help us help you.

Try setting the element and value to L2, the parameter name to L1, and the lacing to Longest.

Thank you for the ideas. I have tried around with list lacing a lot but just cannot get it right.

@sjafarali75 I also tried your suggestion and unfortunately it didnt work.

I have made a Sampleproject and a Sample Excelfile which I will provide with this post. Maybe with this someone here is able to figure it out.

DD04-Excel-sync-forum.dyn (126.3 KB)
Mappe2.xlsx (9.4 KB)

The Revit File is too large unfortunately. It is availible under this link: Unique Download Link | WeTransfer

Kind regards,

Nico

FYI

I have found the issue with this problem. It can be solved by setting the list lacing correctly.

There was another issue with the parameter value types that prevented the successful excution of the Script.

Thanks for all the contributions.