ArcGIS Pro 3.0 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, Windows 8.1

    See Also