tlewis3348
Mechanical
- Aug 23, 2017
- 31
I normally group all the solid bodies representing bolts in a model together into a single geometry group. I would like to use a ACTConsole Snippet to get a list of all the bolts in that group. Is that possible? I am currently using this to get the groups in the model:
Looping through that, I can identify the group I want by getting the group with the "Geometry" as the parent and "bolt" in the name. However, I don't know how to get the children of the group. I think the documentation here might potentially be able to help me, but I don't really know what I'm looking at. Can anyone here point me in the direction I need to go?
Code:
ExtAPI.DataModel.Project.Model.GetChildren(DataModelObjectCategory.TreeGroupingFolder,True)
Looping through that, I can identify the group I want by getting the group with the "Geometry" as the parent and "bolt" in the name. However, I don't know how to get the children of the group. I think the documentation here might potentially be able to help me, but I don't really know what I'm looking at. Can anyone here point me in the direction I need to go?