ArcGIS Pro 3.3 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 DiagramLayerConsistencyState ConsistencyState {get;}
    Public ReadOnly Property ConsistencyState As DiagramLayerConsistencyState
    Example
    Get Diagram from DiagramLayer
    public void GetDiagram(DiagramLayer diagramLayer)
    {
      // note - methods need to run on MCT
    
      NetworkDiagram diagram = diagramLayer.GetNetworkDiagram();
    
      // get the consistency state from the layer
      DiagramLayerConsistencyState dlState = diagramLayer.ConsistencyState;
    
      // or from the diagram
      NetworkDiagramConsistencyState ndState = diagram.GetConsistencyState();
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also