Select to view content in your preferred language

Access Trace Configuration properties from NamedTraceConfiguration

428
2
Jump to solution
05-21-2024 01:14 PM
jefferson_bzp
Emerging Contributor

TraceConfiguration is currently inaccessible via the NamedTraceConfiguration instance.

Is there any other possible way to access the TraceConfiguration and its properties from a NamedTraceConfiguration instance?

 

IReadOnlyList<NamedTraceConfiguration> namedTraceConfigurations = traceManager.GetNamedTraceConfigurations(namedTraceConfigurationQuery);
NamedTraceConfiguration namedTraceConfig = namedTraceConfigurations.FirstOrDefault();

 

The plan would be to use the namedTraceConfig instance to get the TraceConfiguration and then check the properties such as Functions, Filters, Traversability, etc.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Aashis
by Esri Contributor
Esri Contributor

You can get  the TraceConfiguration  from a TraceArgument as below:

 

List<Element> startingPoints = new List<Element> { startingPointElement };
TraceArgument traceArgument = new TraceArgument(namedTraceConfiguration, startingPoints);
TraceConfiguration traceConfiguration = traceArgument.Configuration;

 

 

View solution in original post

2 Replies
Aashis
by Esri Contributor
Esri Contributor

You can get  the TraceConfiguration  from a TraceArgument as below:

 

List<Element> startingPoints = new List<Element> { startingPointElement };
TraceArgument traceArgument = new TraceArgument(namedTraceConfiguration, startingPoints);
TraceConfiguration traceConfiguration = traceArgument.Configuration;

 

 

jefferson_bzp
Emerging Contributor

Thank you so much, Aashis!

0 Kudos