General

General

How can I check the Cell State (e.g. UpToDate, Incomplete, OutOfDate, etc.) in a Workbench Script/Journal?

    • FAQFAQ
      Participant

      To check the Cell State in a Workbench Journal, you can use for example the function GetComponentState(component). The following example illustrates this for the Geometry Cell of the System with the ID “Geom”: system = GetSystem(Name=”Geom”) geometryComponent = system.GetComponent(Name=”Geometry”) componentState = GetComponentState(geometryComponent) print componentState.State Another option is the function GetCellDisplayState(component): system = GetSystem(Name=”Geom”) geometryComponent = system.GetComponent(Name=”Geometry”) cellState = GetCellDisplayState(geometryComponent) print cellState.State