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

GetAggregations Method
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()

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