Yes, exactly. Found the TreeStatistics component in the meantime as well.
We developed a C# component that returns the meshes which represent floors in buildings in the branches. So all meshes in {1;3} belong to level 1, {2;3} to level 2 and so on.
I need this information to attach it as a parameter when exporting to Speckle.
If so … get this as well (notify if you want far more complex stuff for the “conversion” - like using some Class + P/LINQ for monitoring the “state/properties” of Meshes [the pro way to cut the mustard]).
@PeterFotiadis makes a good point, if you’re using a C# component to arrange your meshes as branches in a DataTree why not just capture the path information there?
Plus - general case - given a suitable Class you can assign any Property to any Object (like ownership, spaces, adjacency data, usage, utilization, material finishing data, HVAC etc etc) and then issue any Query imaginable: like find floors in buildings with more than 40 floors that have 6 spaces each having more than 3 neighbors that have this type of usage and finish etc etc). Or find the most visited rooms where live 2 cats and 4.5 dogs … blah, blah
That is also the plan to assign properites to objects in future versions. However, in the current version we don’t have it and therefore I needed to find a different way.