ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / DiagramManager Class / CreateNetworkDiagramFromCircuitName Method
The DiagramTemplate of the network diagram to create.
The input name of the circuit used to create the diagram.

In This Topic
    CreateNetworkDiagramFromCircuitName Method
    In This Topic
    Creates a NetworkDiagram based on a DiagramTemplate from trace locations stored in tables. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function CreateNetworkDiagramFromCircuitName( _
       ByVal diagramTemplate As DiagramTemplate, _
       ByVal circuitName As String _
    ) As NetworkDiagram
    public NetworkDiagram CreateNetworkDiagramFromCircuitName( 
       DiagramTemplate diagramTemplate,
       string circuitName
    )

    Parameters

    diagramTemplate
    The DiagramTemplate of the network diagram to create.
    circuitName
    The input name of the circuit used to create the diagram.

    Return Value

    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred. For example, the circuitName is invalid.
    This method or property must be called within the lambda passed to QueuedTask.Run
    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 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.7 or higher.
    See Also