Hello,
I am currently using the File3dmGroupTable returned from doc.AllGroups in OpenNURBS. I can then access each Group using the FindIndex method. However, once I have a Rhino.DocObjects.Group, I am not seeing a way to list File3dmObject or IDs for members of the group.
Is there a way I can list members of a Group with OpenNURBs? Should I be using another approach here?
A Rhino object stores it’s group memberships on it’s object attributes. So just walk through all of the objects in the 3dm file and find those that reference the group’s index.
Hi @dale,
That make sense - although it seems an expensive operation to determine group items for all objects in a model.
It seems that a Group object would expose a property to list item IDs belonging to it rather than require the user to iterate and sort all objects in the model. It sounds like that is not the case?
Hi @dale
I am too looking for the same in Rhino3dm Python. Is there a plan to add this?
I see that when using Rhino3dm Python, and object does not have GroupIndex as one of its ObjectAttributes.
I believe, I can work with it. Thanks. However, as mentioned by Nate above this can be computationally expensive. It would be good have a method on Python side that provides access to objects on a Group.