ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / DiagramLayerConsistencyState Enumeration
Example Example

In This Topic
    DiagramLayerConsistencyState Enumeration
    In This Topic
    The diagram consistency state of a diagram layer.
    Syntax
    Members
    MemberDescription
    AssociatedDiagramHasDirtyFeatures The associated network diagram has dirty features.
    AssociatedDiagramIsConsistent The associated network diagram is consistent.
    AssociatedDiagramNotConsistentWithTopology The associated network diagram is potentially inconsistent versus the topology.
    SubLayersAreMissingOrAreEmpty Some diagram sublayers are missing or are empty.
    Example
    Get Diagram from DiagramLayer
    {
      // Get the NetworkDiagram from a DiagramLayer and check its ConsistencyState
      static void GetDiagram(DiagramLayer diagramLayer)
      {
        NetworkDiagram diagram = diagramLayer.GetNetworkDiagram();
    
        // Get the consistency state from the layer
        DiagramLayerConsistencyState diagramLayerConsistencyState = diagramLayer.ConsistencyState;
    
        // Or from the diagram
        NetworkDiagramConsistencyState diagramConsistencyState = diagram.GetConsistencyState();
      }
    }
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Mapping.DiagramLayerConsistencyState

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also