I am working with Rhino 8 and trying to retrieve the geometry and text from the new dimension parameters. The documentation of the Explode() function mentions that it should return an array of Geometry and TextEntity objects, but when I use it I do not get any TextEntity:
@kike Thank you for getting back to me! I dug a little more and realized the issue happens when creating the dimension entity in Grasshopper, or internalizing it. If I reference a dimension from a Rhino document, it works indeed:
Dimensions do compute the text part lazily, on demand, for instance when are drawn on viewport.
In order to force text to be computed you should call Dimension.UpdateDimensionText before calling Explode.