Hi there! I am stuck with something and need help (have not touched Dynamo in a while). I have solids with properties attached to Psets. Now I need to create new list of the items where the properties have the same value. Can someone point me in the right direction?
Maybe this could be a start?
In this graph I wanted to select all object that had the same value for “Layer” in their property set. I did know that it where a couple of block references, a 3d polyline and a solid and using this I could select one object and the graph collected all other objects with the same value for layer.
Thanks @patrick.ericson! That was my first approach also. But it is not generic enough. I would need to built several graphs and would have to “hardcode” the properties i am looking for.
Oki, do you have any examples that you can share? dwg and dyn
Hi @FC_GN8 ,
If you have two lists, 1 with the solids and 1 with their respective Psets you can use List.GroupByKey to group your solids according to their Psets.
Thanks for you help! List.GroupByKey did the trick, Fin the script attached!
1 Like