ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / DiagramLayer Class / ConsistencyState Property
Example

In This Topic
    ConsistencyState Property
    In This Topic
    Gets the network diagram consistency state.
    Syntax
    Public ReadOnly Property ConsistencyState As DiagramLayerConsistencyState
    public DiagramLayerConsistencyState ConsistencyState {get;}
    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();
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also