GetNetworkDiagrams Method (DiagramTemplate)
Gets the list of
NetworkDiagrams based on this diagram template. This method must be called on the MCT. Use QueuedTask.Run.
Return Value
The list of
NetworkDiagrams associated with this diagram template.
Get Network Diagrams from a Diagram Template
public void GetNetworkDiagramFromDiagramTemplates(UtilityNetwork utilityNetwork)
{
using (DiagramManager diagramManager = utilityNetwork.GetDiagramManager())
{
// get the first templates
DiagramTemplate template = diagramManager.GetDiagramTemplates().FirstOrDefault();
// get the network diagrams fromt he template
IEnumerable<NetworkDiagram> diagrams = template.GetNetworkDiagrams();
// or get a network diagram by name
NetworkDiagram diagram = template.GetNetworkDiagram(diagrameName);
}
}
Target Platforms: Windows 11, Windows 10, Windows 8.1
ArcGIS Pro version: 3.0 or higher.