How do I access pre-existing result objects in Composite Failure Tool?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 450
100 Answers 250 Likes 100 Comments First Anniversary
✭✭✭✭
edited June 2023 in Structures

How do I access pre-existing result objects in Composite Failure Tool?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 450
    100 Answers 250 Likes 100 Comments First Anniversary
    ✭✭✭✭
    Answer ✓

    I have found a way, in case anyone someone has a more elegant method, please post. Thanks!

    for child in ExtAPI.DataModel.Tree.AllObjects:
        if child.GetType().ToString() == 'Ansys.ACT.Automation.Mechanical.Results.CompositeFailureResults.CompositeFailureResult':
            child.AddFigure()
    
  • Chemsdine CHEMAI
    Chemsdine CHEMAI Member, Employee Posts: 201
    100 Likes 100 Comments First Anniversary Ansys Employee
    ✭✭✭✭
    Answer ✓

    @Ayush

    a more elegant method :

    ExtAPI.DataModel.Project.GetChildren[Ansys.ACT.Automation.Mechanical.Results.CompositeFailureResults.CompositeFailureResult](True)