How to create results and group them in Mechanical
![Erik Kostson](https://us.v-cdn.net/6037473/uploads/avatarstock/nXPEHISZX7D4V.png)
Erik Kostson
Member, Employee Posts: 193
✭✭✭✭
How can I with mechanical scripting add say stress and displacement results into a folder group?
0
Best Answer
-
Below is a sample script that does that:
resgr=[] solution = ExtAPI.DataModel.Project.Model.Analyses[0].Solution directional_deformation = solution.AddDirectionalDeformation() equivalent_stress = solution.AddEquivalentStress() resgr.append(equivalent_stress) resgr.append(directional_deformation) folder1 = ExtAPI.DataModel.Tree.Group(resgr) folder1.Name = "My folder"
0
This discussion has been closed.