UNTraceConfigurationClass

Utility Network Trace Configuration.

Interfaces

Interfaces Description
IPathTraceConfiguration Provides access to members that specify the properties of a path trace configuration.
IUNTraceConfiguration Provides access to members that specify the properties of a utility network trace configuration.
IUNTraceConfiguration2 Provides access to members that specify the properties of a utility network trace configuration 2.
// Configure trace parameters

UNTraceConfiguration traceConfig = new UNTraceConfiguration();



traceConfig.IgnoreBarriersAtStartingPoints = true;

traceConfig.IncludeContainers = false;

traceConfig.IncludeBarriers = false;

traceConfig.IncludeContent = true;

traceConfig.IncludeIsolated = false;

traceConfig.IncludeStructures = false;

traceConfig.IncludeUpToFirstSpatialContainer = false;

traceConfig.DomainNetworkName = "DOMAIN_NETWORK";

traceConfig.TierName = "MV_TIER_NAME";

traceConfig.TargetTierName = "MV_TIER_NAME";

traceConfig.TraversabilityScope = esriTraversabilityScope.esriTSJunctionsAndEdges;

traceConfig.FilterScope = esriTraversabilityScope.esriTSJunctionsAndEdges;

traceConfig.ValidateConsistency = false;



// Add output filter to only return low voltage service points

IArray outFilters = new ArrayClass();



for (int i = 0; i < LV_SERVICE_ASSETTYPES.Length; i++)

{

    UNOutputFilter outFilter = new UNOutputFilter();

    outFilter.NetworkSourceID = 12;

    outFilter.AssetGroupCode = LV_SERVICE_ASSETGROUP;

    outFilter.AssetTypeCode = LV_SERVICE_ASSETTYPES[i];

    outFilters.Add(outFilter);

}

traceConfig.OutputFilters = outFilters;

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close