Context

<< Click to Display Table of Contents >>

 

Context

Context(ContextName)

Returns an object implementing the context indicated by the ContextName parameter, which must be a String surrounded by quotation marks. This method fails if no object on the upper hierarchy of the object calling this method implements that context. The following contexts are available:

Container: Server and Viewer objects, that is, objects inserted in project files or on folders inside projects

Area: Alarm Areas, or any server object whose IsAlarmArea property is set to True

Device: Bay, Branch, Breaker, Busbar, Capacitor, Direct Current Branch, Distribution Load, Distribution Transformer, Feeder, Generator, Inverter, Junction Box, Line Segment, Photovoltaic Array, Photovoltaic Power Plant, Reactor, Recloser, Switch, Switch Fuse, Substation, Three-Winding Transformer, Transmission Line, Two-Winding Transformer, Voltage Regulator, Wind Power Plant, and Wind Turbine objects

Group: Group of Commands, Group of Interlocks, Group of Measurements, Group of Photovoltaic Strings, Group of Protections, and Terminal objects

SwitchGear: Breaker, Recloser, Switch, and Switch Fuse objects

Transformer: Distribution Transformer, Three-Winding Transformer, Two-Winding Transformer, and Wind Turbine Transformer objects

 

In addition, the following specific contexts are available:

Bay: Bay object

Blade: Wind Turbine's Blade object

Branch: Branch and Direct Current Branch object

Breaker: Breaker object

BusBar: BusBar object

Capacitor: Capacitor object

Commands: Group of Commands object

Converter: Wind Turbine's Converter object

DistributionLoad: Distribution Load object

Feeder: Feeder object

Generator: Generator object

GeneratorRotor: Wind Turbine's Generator Rotor object

GeneratorStator: Wind Turbine's Generator Stator object

GeneratorTerminal: Wind Turbine's Generator Terminal object

GridTerminal: Wind Turbine's Grid Terminal object

Hub: Wind Turbine's Hub object

Interlocks: Group of Interlocks object

Inverter: Inverter object

JunctionBox: Junction Box object

LineSegment: Transmission Line Segment object

Load: Load object

Measurements: Group of Measurements object

Meteorological: Wind Turbine's Meteorological object

Nacelle: Wind Turbine's Nacelle object

PhotovoltaicArray: Photovoltaic Array object

PhotovoltaicPowerPlant: Photovoltaic Power Plant object

Protections: Group of Protections object

Reactor: Reactor object

Recloser: Recloser object

Rotor: Wind Turbine's Rotor object

String: Photovoltaic String object

Strings: Photovoltaic String Group object

Substation: Substation object

Switch: Switch object

SwitchFuse: Switch Fuse object

Tower: Wind Turbine's Tower object

Transmission: Wind Turbine's Transmission object

TransmissionLine: Transmission Line object

VoltageReg: Voltage Regulator object

WindPowerPlant: Wind Power Plant object

WindTurbine: Wind Turbine object

Yawing: Wind Turbine's Yawing object

 

NOTE

Context names are case-insensitive. To check the context to which an object belongs, open its Properties Window, select the Item tab, and then check its valid contexts in the Contexts frame. In case an object defines more than one context, their names are presented in alphabetical order, separated by commas.

Was this page useful?