ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace / ShortestPathTracer Class
Members

In This Topic
    ShortestPathTracer Class
    In This Topic
    The ShortestPathTracer returns the shortest path between two starting points.
    Object Model
    ShortestPathTracer ClassUtilityNetwork Class
    Syntax
    public class ShortestPathTracer : Tracer 
    Public Class ShortestPathTracer 
       Inherits Tracer
    Remarks
    The definition of "shortest" can be controlled via the TraceConfiguration.ShortestPathNetworkAttribute property. Typically, Shape Length is used. One counterexample might be if you are looking for the shortest path through an underground system. You might prefer a longer path via duct banks, versus a shorter path through a trench that requires excavation, since the excavation might be more costly. In this case, you would set up a network attribute that represents these costs.
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.Data.UtilityNetwork.Trace.Tracer
          ArcGIS.Core.Data.UtilityNetwork.Trace.ShortestPathTracer

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also