Group list values


#1

I’m looking to break up a list based on the same values; values in this case would be a specific programmatic department. I have managed to split the list based on each individual input but I would like to split the list based on the same department and keep the instances of each department as a sublist. Any suggestions on the best way to go about it?

sort list


#2

There’s a great node for this purpose: GroupByKey. Input your original list into both the list and key inputs and it will group the items by their name. See image below.


#3

Thanks for the reply Bo. What version are you using? That was one of the first nodes I tried but received the following:

sort list2

 

Edit: Found the “Group Items by Key List” packaged node and did just what I needed


#4

@ Aaron, Bo is using latest build Dynamo version 0.9.1 you can get it here http://dynamobim.com/download/