Group different elements with different parameters by key

Hello everyone :slight_smile: I am working on a script which I would like to group my elements by key. However I would like to group these elements based on a value that refer to different parameters. Let me try being more clear:

I would like to group walls, floors and beams by their “Elevation at Top”, however my walls do not have this parameter so I am generating a new parameter called “TOP” in my walls which contains the value of my height vertice on my wall. I am now trying to group all my elements by the value they have either my “Elevation at top” and/or “TOP”, therefore if my wall has a “TOP” value that equal to a floor “Elevation at Top” value they would be grouped together.

I tried just joning the list and gathering the keys from the different paramenter but apparently my logic is incorrect and I am trying to figure this out. Here is a screenshot of what I have until now.

Thanks

Could it help use your list join as key, so the list is equal and the take unique items after

1 Like

oh, that was quick! Thanks @sovietek, that worked perfectly :slight_smile:

1 Like