ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / DiagramManager Class / CreateNetworkDiagramFromTraceLocations Method
The DiagramTemplate of the network diagram to create.
The table that contains the starting points.
The table that contains the stopping points (optional).
The table that contains the barriers (optional).

In This Topic
    CreateNetworkDiagramFromTraceLocations 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 CreateNetworkDiagramFromTraceLocations( _
       ByVal diagramTemplate As DiagramTemplate, _
       ByVal startingPointsTable As Table, _
       ByVal stoppingPointsTable As Table, _
       ByVal barriersTable As Table _
    ) As NetworkDiagram

    Parameters

    diagramTemplate
    The DiagramTemplate of the network diagram to create.
    startingPointsTable
    The table that contains the starting points.
    stoppingPointsTable
    The table that contains the stopping points (optional).
    barriersTable
    The table that contains the barriers (optional).

    Return Value

    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred. For example, the startingPointsTable 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, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also