ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Trace Namespace / NearestNeighbor Class / CostNetworkAttribute Property

In This Topic
    CostNetworkAttribute Property
    In This Topic
    The ArcGIS.Core.Data.UtilityNetwork.NetworkAttribute used to determine the definition of "nearest."
    Syntax
    Public ReadOnly Property CostNetworkAttribute As NetworkAttribute
    public NetworkAttribute CostNetworkAttribute {get;}
    Remarks
    Typically, Shape Length is used. However, other network attributes can be used to calculate cost. For example, if you are looking for the nearest underground vault, you might prefer a more geographically distant vault that is connected via a duct bank, versus a geographically closer vault that requires excavation in the ground.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also