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

ConsistencyState Property
Gets the network diagram consistency state.
Syntax
public DiagramLayerConsistencyState ConsistencyState {get;}
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