private void TraceUtilityNetworkUsingNamedTraceConfiguration(UtilityNetwork utilityNetwork, NamedTraceConfiguration namedTraceConfiguration, Element startElement) { // Get the trace manager from the utility network using (TraceManager traceManager = utilityNetwork.GetTraceManager()) { // Get a tracer from the trace manager using the named trace configuration Tracer upstreamTracer = traceManager.GetTracer(namedTraceConfiguration); // Trace argument holding the trace input parameters TraceArgument upstreamTraceArgument = new TraceArgument(namedTraceConfiguration, new List<Element> { startElement }); // Trace results IReadOnlyList<Result> upstreamTraceResults = upstreamTracer.Trace(upstreamTraceArgument); } }
System.Object
ArcGIS.Core.Data.UtilityNetwork.Trace.Result
ArcGIS.Core.Data.UtilityNetwork.Trace.AggregatedGeometryResult
ArcGIS.Core.Data.UtilityNetwork.Trace.ElementResult
ArcGIS.Core.Data.UtilityNetwork.Trace.FeatureElementResult
ArcGIS.Core.Data.UtilityNetwork.Trace.FunctionOutputResult
Target Platforms: Windows 11, Windows 10