How can add certain results and group them

How can I with mechanical scripting add say stress and displacement results into a folder group?

Best Answer

  • Erik Kostson
    Erik Kostson Member, Employee Posts: 87
    First Answer Name Dropper First Anniversary Ansys Employee
    Answer ✓

    Below is a sample code:

    solution = ExtAPI.DataModel.Project.Model.Analyses[0].Solution
    directional_deformation = solution.AddDirectionalDeformation()
    equivalent_stress = solution.AddEquivalentStress()
    folder1 = ExtAPI.DataModel.Tree.Group(resgr)
    folder1.Name = "My folder"