How to get nested geometry


I need to access nested block geometry. I can see that iterating the scene meshes gives a RhinoObject for a nested block with a ObjectType of InstanceGeometry, and there is a InstanceReferenceGeometry item in the Geometry member - how can this be used to get a Mesh object pls?



You need to lookup the InstanceDefinition in the InstanceDefinitions table of the RhinoDoc. This contains the geometry, or a reference to another InstaceReferenceGeoemetry if it is nested.

Thanks - that works.