I am trying to write a macro to turn enable "Tree Display -> Show Configuration Names". I found that the following statement will toggle that setting.
BoolStatus = swModel.Extension.RunCommand(swCommands_e.swCommands_Show_Configname_In_Configtree, "")
This isn't exactly what I want since it will blindly turn off this option if it is already enabled.
Is there a different method that will force this option to be enabled, regardless of it's initial state. Alternately is there a way to read if the option is already enabled so I can determine if I really want to toggle the option?
You need to use IConfigurationManager::ShowConfigurationNames