Check if the resolution went well

PierreLCV Member Posts: 35
First Comment Name Dropper

Dear Ansys Developper,
I am using Ansys Mechanical Scripting to automate my calcuations and it appears that I would like to be able to check if the resolution went well at the end of the solving process. Basically, check if no errors occured during the resolution process. Which command could I use to check if "everything is green" once the calculations are done ?

Thank you for your help,


  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 823
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member

    Hello @PierreLCV ,
    One way to do this would be to check whether you have a green tick mark next to "Solution":

    You could check other objects in the tree in a similar manner as well.
    I also see two other options:

    • retrieve the messages in Mechanical and check for errors and warning messages:
    for message in ExtAPI.Application.Messages:
    • parse the solve.out file and check for warning and error messages
  • PierreLCV
    PierreLCV Member Posts: 35
    First Comment Name Dropper

    Dear Pernelle,
    Thank you VERY MUCH for your reply, that's great ! The first option you offered me is satisfying :).

    Problem fixed !

    Best regards,