I was trying to get the meshes contained in an instance definition.
However, I retrieve the instance definitions from
document.Objects which are
I thought the method
GetSubObjects would give me the meshes or subinstances if the object type was
ObjectType.InstanceReference but the only object I received was an exception
I managed by casting the
RhinoObject to an
InstanceObject and then calling
GetObjects on it. It works as expected now
I'm curious though ; why would that method systematically throw an exception ? And what does that exception would mean ?
Thank you !