I’ve written a short script to export the areas & centroids of a number of surfaces/polysurfaces to excel in a formatted table - this is currently done with the object names as the reference. Nice and easy…
It would be great to have it formatted so that the layers and sublayers are the references instead, as per the example below. I’ve looked at the available Rhinoscript methods for layers - the layer of the objects can be returned with “ObjectLayer”, but I can’t see a way to file the sublayers under the correct parent layer.
Has anyone done something similar that can point me in the right direction? All help greatly appreciated.