Select to view content in your preferred language

Access Trace Configuration properties from NamedTraceConfiguration

209
2
Jump to solution
a month ago
jefferson_bzp
New Contributor II

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
New Contributor II

Thank you so much, Aashis!

0 Kudos