I am trying to get all the layers used in a group, then I want to run a function based on the layer names that are INSIDE that selected group.
I have found plenty of other methods, but they all involve selecting every object in the document on a layer.
Any help would be awesome!
VB.net, C#, RS, or Python, anything you got i can work with
I think this extension method should do it:
public static class GroupTableExtensionMethods
/// Returns the layer indices of Group members
public static int GroupLayers(this GroupTable groupTable, int groupIndex)
if (groupIndex > 0 && groupIndex < groupTable.Count)
var rhino_objects = groupTable.GroupMembers(groupIndex);
var hash_set = new HashSet<int>();
foreach (var rh_obj in rhino_objects)
return new int;