ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / DiagramTemplate Class
Members Example

In This Topic
    DiagramTemplate Class
    In This Topic
    Represents a diagram template.
    Object Model
    DiagramTemplate ClassDiagramManager ClassNetworkDiagram Class
    Syntax
    public sealed class DiagramTemplate : ArcGIS.Core.CoreObjectsBase, System.IDisposable  
    Public NotInheritable Class DiagramTemplate 
       Inherits ArcGIS.Core.CoreObjectsBase
       Implements System.IDisposable 
    Remarks
    A diagram template holds the configuration properties defining the content (diagram builder definition), and presentation (diagram layer definition) of a type of network diagram. DiagramTemplate objects are obtained from DiagramManager.GetDiagramTemplate or DiagramManager.GetDiagramTemplates.
    Example
    Get Diagram Templates
    public void RetrieveDiagramTemplates(UtilityNetwork utilityNetwork)
    {
      using (DiagramManager diagramManager = utilityNetwork.GetDiagramManager())
      {
        // get all templates
        IReadOnlyList<DiagramTemplate> templates = diagramManager.GetDiagramTemplates();
    
        // get a template by name
        DiagramTemplate template = diagramManager.GetDiagramTemplate(templateName);
      }
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CoreObjectsBase
          ArcGIS.Core.Data.NetworkDiagrams.DiagramTemplate

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also