How to get WB project system status?

Options

Hi

I need to get the system status - whether the system is soleved/need to be update etc. ? I've got multiple systems and I would like to know which ones were already solved and which one I need to solve.

Is it possible to get the statu also for particular components like Setup, Solution, ...

Thank you for the answers

Answers

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

    Hi @Josef Behal , as far as I'm aware you will indeed have to check the status for each component. The following code gets the status of the "Solution" component of the first system in the WB projetc schematic:

    GetComponentState(GetAllSystems()[0].GetComponent("Solution")).State
    
  • Josef Behal
    Josef Behal Member Posts: 22
    First Comment Name Dropper
    Options

    Hi @Pernelle Marone-Hitz,

    that is exactly what I need. Thank you.