ArcGIS Pro 3.2 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.
    public enum DiagramLayerConsistencyState : System.Enum, System.IComparable, System.IConvertible, System.IFormattable  
    Public Enum DiagramLayerConsistencyState 
       Inherits System.Enum
       Implements System.IComparable, System.IConvertible, System.IFormattable 
    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.
    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();
    Inheritance Hierarchy



    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also