Navigation:  WORKING WITH METERS >

3.6.2 Example: Viewing a List of Installed Meter Components

Previous page Next page
  rev. 2007-12-04        

Each Meter has a list of Meter Components which are associated to a Utility Tariff. The following example shows how to retrieve and display the list of installed Meter Components for the natural gas meter (NG1) inside a facility (7023 - Springfield Recreational Centre).

// Get the Springfield Recreational Centre facility (ID 7023)

Facility facility = api.PortfolioManager.GetFacility("ManagingEnergy_Template", "01", "7023");

 

// Get the NG1 (Natural Gas) meter

Meter meter = api.MeterManager.GetMeter("ManagingEnergy_Template", "01", "7023", "7023 NG1");

 

// Get the list of installed meter components

MeterComponent[] components = meter.GetComponents(api);

 

// Display the meter components

foreach (ManagingEnergy.MeterComponent component in components)

  Console.WriteLine(component);

 

// OUTPUT

7023 NG1 - Commodity Charge G

7023 NG1 - Consumption G

7023 NG1 - GST G

7023 NG1 - PST G

7023 NG1 - R6 L1 DC S G

7023 NG1 - R6 L1 DC W G

7023 NG1 - R6 L1 S Total G

7023 NG1 - R6 L1 W Total G

7023 NG1 - R6 L2 DC S G

7023 NG1 - R6 L2 DC W G

7023 NG1 - R6 L2 S Total G

7023 NG1 - R6 L2 W Total G

7023 NG1 - R6 L3 DC S G

7023 NG1 - R6 L3 DC W G

7023 NG1 - R6 L3 S Total G

7023 NG1 - R6 L3 W Total G

7023 NG1 - R6 L4 DC S G

7023 NG1 - R6 L4 DC W G

7023 NG1 - R6 L4 S Total G

7023 NG1 - R6 L4 W Total G

7023 NG1 - R6 L5 DC S G

7023 NG1 - R6 L5 DC W G

7023 NG1 - R6 L5 S Total G

7023 NG1 - R6 L5 W Total G

7023 NG1 - R6 L6 DC S G

7023 NG1 - R6 L6 DC W G

7023 NG1 - R6 L6 S Total G

7023 NG1 - R6 L6 W Total G

7023 NG1 - R6 Monthly Charge G

7023 NG1 - R6 Subtotal G

7023 NG1 - R6 Total G



3.6.2_Example_Viewing_a_List_o         ©2017 Managing Energy Inc.