Navigation:  WORKING WITH METERS >

3.6.1 Example: Retrieving a List of Meters from a Facility

Previous page Next page
  rev. 2007-12-04        

The following example shows how to view the list of meters which are located in a specific facility (7023 - Springfield Recreational Centre).

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

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

 

// Get the list of meters at this facility

Meter[] meters = facility.GetMeters(api);

 

// display the meteres

foreach (ManagingEnergy.Meter meter in meters)

  Console.WriteLine(meter);        

 

// OUTPUT

7023 E - 7896541236

7023 NG1 - 32165478965

7023 NG2 - 25836914764



3.6.1_Example_Retrieving_a_Lis         ©2017 Managing Energy Inc.