I have a Rhino script that loops through each object and screens out those I don’t want to evaluate (for Each strAnObject in AllRhinoObjects). I want to ignore all objects in blocks, but I don’t see a method named IsObjectInBlock or similar. I suspect that blocks are not stored in the Rhino.AllObjects collection, but don’t know for sure. Can someone either tell me how to identify objects that belong to blocks, or if blocks are not part of the Rhino.AllObjects collection?
Hi, your assumption is correct (block definition objects are not included in the result).
You will have to iterate through the list of all block definitions and gather their object data to get the list of in-block objects.