public IReadOnlyList<NetworkDiagram> GetNetworkDiagrams()
Public Function GetNetworkDiagrams() As IReadOnlyList(Of NetworkDiagram)
Return Value
The list of NetworkDiagrams associated with this diagram template.
public IReadOnlyList<NetworkDiagram> GetNetworkDiagrams()
Public Function GetNetworkDiagrams() As IReadOnlyList(Of NetworkDiagram)
Exception | Description |
---|---|
ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
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