ArcGIS Pro 3.4 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
    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

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

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also