ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / NetworkDiagram Class / GetAggregations Method
Example

In This Topic
    GetAggregations Method
    In This Topic
    Gets the list of DiagramAggregations contained in this network diagram. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public IReadOnlyList<DiagramAggregation> GetAggregations()
    Public Function GetAggregations() As IReadOnlyList(Of DiagramAggregation)

    Return Value

    The list of DiagramAggregations.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    Example
    Get Diagram Aggregations
    public void GetDiagramAggregation(NetworkDiagram networkDiagram)
    {
      IReadOnlyList<DiagramAggregation> aggregations = networkDiagram.GetAggregations();
      foreach (var aggregation in aggregations)
      {
        var type = aggregation.AggregationType;
      }
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also