ArcGIS Pro 2.6 API Reference Guide
CreateNetworkDiagram Method

ArcGIS.Core.Data.UtilityNetwork.NetworkDiagrams Namespace > DiagramManager Class : CreateNetworkDiagram Method
The DiagramTemplate of the network diagram to create.
A list containing the global IDs of the input geographic features.
Creates a NetworkDiagram based on a DiagramTemplate from a list of row GlobalIDs.
Syntax

Parameters

diagramTemplate
The DiagramTemplate of the network diagram to create.
globalIDs
A list containing the global IDs of the input geographic features.

Return Value

Exceptions
ExceptionDescription
A geodatabase-related exception has occurred. For example, the globalIDs is invalid.
Remarks
This routine generates its own editing transaction, and therefore cannot be wrapped in a separate transaction. Because the editing performed by this routine cannot be undone, this routine can also not be called within an editing session. All edits in the current edit session must be saved or discarded before calling this routine.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

DiagramManager Class
DiagramManager Members