The C++ MicroStationAPI provides class ConfigurationManager having method IterateThroughVariables. The DgnPlatformNET API also provides ConfigurationManager, but it lacks the IterateThroughVariables method.
ConfigurationManager
IterateThroughVariables
Is there another way to iterate all configuration variables using a .NET API?
Hi Jon Summers,
I just wanted to let you know that one of our developers has been asked to look into this and/or provide a public method to access this functionality if no other work-around is available.On the point of a work-around; though not ideal; you could call ConfigurationManager::WriteActiveConfigurationSummary() saving the active session configuration variable map (level, variable name, expanded value) to a (background) file of your choosing and parse it into your own copy of an enumerable list. Adding a configuration variable session monitor should then provide you notification on what variables are changed so your code could react to changes.HTH,Bob
Robert Hook said:you could call ConfigurationManager::WriteActiveConfigurationSummary() saving the active session configuration variable map (level, variable name, expanded value) to a (background) file of your choosing and parse it into your own copy of an enumerable list
I had considered that. But, to write all configuration files, .NET must do something like IterateThroughVariables. That begs another question: Why isn't WriteActiveConfigurationSummary() available in the C++ API?
WriteActiveConfigurationSummary()
Regards, Jon Summers LA Solutions
Hopefully our developer upon response will touch upon this and filing a enhancement if there is not something we may have missed.
Bob