Which is fine.
But when I want to sort these with added levels where “Room area” or/and “Occupancy” don’t exist but say “Areas” do exist the whole list for that level doesn’t come through.
For Instance, if I added a “Parking Level” to the project which has no “Room area” or “Occupancy” i want to list this level regardless as I want the “Area” (which does exist) to still come up. example below in bold below:
Hello, this is hard to tell without any graph, but if you make use of custom packages, some ReplaceNull nodes in Clockwork or DanEDU Dynamo could possibly help…
The graph below seems extensive but is structured so values are listed by level.
I have introduced (in blue) a list of all “Levels” as a starting point to become the way everything else is sorted regardless if values exist at that level or not. It might not be useful but this is where I am at.
The values I am after are in the orange, green and yellow boxes. These list just fine once exported to excel however, as my previous post raises, when I add a level without all these values available on that level it throws out the whole final list.
Thanks for the response, with that graph though I would have to specify if a level needed to go on the end or beginning of a list. I have a project whereby there are multiple levels in between various “typical” levels which I would still need to list, such as “Plant” or "Parking Level"s for instance which would be at the beginning and simultaneously at the start.
I want to make this useful for multiple projects that would have various level arrangements but I could still attach a value too whether it be 0 or 1.
To sum up, List.AllIndicesOf returns empty items where needed, I replace these empty values by a ‘null’ value, that’s why List.GetItemAtIndex returns a warning, but also a list that should be complete and in the expected order. After Replace Null, you get at least one value per level.
I would have to search a little bit more in my notes to improve this if needed (something with List.Map maybe).