Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
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