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

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 389
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
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: 389
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    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
    First Anniversary Ansys Employee Solution Developer Community of Practice Member 5 Likes
    Answer ✓

    @Ayush

    a more elegant method :

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