ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace / TraceConfiguration Class / ShortestPathNetworkAttribute Property

In This Topic
    ShortestPathNetworkAttribute Property
    In This Topic
    The ArcGIS.Core.Data.UtilityNetwork.NetworkAttribute used to calculate the shortest path when using the ShortestPathTracer.
    Syntax
    public NetworkAttribute ShortestPathNetworkAttribute {get; set;}
    Public Property ShortestPathNetworkAttribute As NetworkAttribute
    Remarks
    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.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also