ArcGIS Pro 3.7 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 Function GetAggregations() As IReadOnlyList(Of DiagramAggregation)
    public IReadOnlyList<DiagramAggregation> GetAggregations()

    Return Value

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

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also