How can I list the names of all the bodies in the Mechanical tree through ACT?
Pernelle Marone-Hitz
Member, Moderator, Employee Posts: 864
✭✭✭✭
Answers
-
One can create a loop to go through all the parts and bodies in the model and use print command to print the name. Here is a script example :
geo = ExtAPI.DataModel.Project.Model.Geometry for part in geo.Children: for body in part.Children: print(body.Name)
0