SwitchGearColors

<< Click to Display Table of Contents >>

 

SwitchGearColors

Link This property returns an object that allows configuring Status Colors for Switches or Breakers by script. Status Colors are available on the Switches/Breakers tab of the Power Configuration object. To use the object returned by this property at run time, users must deactivate the Power Configuration object before changing its properties, according to the next example.

Set pc = Application.GetObject("PowerConfiguration")
Set sgc = pc.SwitchGearColors
pc.Deactivate
sgc.ColorOpenGood = RGB(0, 192, 0)
sgc.ColorOpenBad = RGB(0, 96, 0)
sgc.ColorClosedGood = RGB(192, 0, 0)
sgc.ColorClosedBad = RGB(96, 0, 0)
sgc.ColorIntermediateGood = RGB(192, 48, 96)
sgc.ColorIntermediateBad = RGB(96, 24, 48)
sgc.ColorInvalidGood = RGB(192, 192, 192)
sgc.ColorInvalidBad = RGB(96, 96, 96)
pc.Activate

 

NOTE

Please check topic Status Colors for Switches or Breakers for more information about the properties of the object returned by this property.

Was this page useful?