I am trying to pull out some data from sublists AND IF the data is the same, then I would like the next sublist data to add up. (please see the image below).
The objective is to create one “routine” that permits my office to calculate the total Netto area of a serie of appartmens in a Building Block based on Revit Information and then export it to Excel for further processing.
@erfajo Thank you for your help and sorry for the late answer. I am not having so much time to play with Dynamo after work lately.
Indeed the “GroupByKey” kind of sorted out my list and helped me to organize this script. Actually I got almost what I want. The script works now if we specific one Item from the list - “3” in this case. My goal is but to add all the areas that have the same apartment number (which is represented by the index 1 in all the sub lists).
@erfajo , @Ritesh_Chandawar thank you both for the answers with different approaches. I will try to learn something from your both scripts since I’m new to Dynamo and Coding.