How to get WB project system status?

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: 859
    500 Comments Photogenic Name Dropper Solution Developer Community of Practice Member
    ✭✭✭✭

    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
    10 Comments Name Dropper
    **

    Hi @Pernelle Marone-Hitz,

    that is exactly what I need. Thank you.