private NamedTraceConfiguration GetNamedTraceConfigurationsFromUtilityNetworkLayer(UtilityNetworkLayer utilityNetworkLayer, string configurationName = "WaterNetwork")
{
// Get all named trace configurations in the utility network
IReadOnlyList<NamedTraceConfiguration> namedTraceConfigurations = utilityNetworkLayer.GetNamedTraceConfigurations();
foreach (NamedTraceConfiguration namedTraceConfiguration in namedTraceConfigurations)
{
if (namedTraceConfiguration.Name == configurationName)
{
return namedTraceConfiguration;
}
}
return null;
}