AnsweredAssumed Answered

How to get the attribute value for a list of AF Elements in one go.

Question asked by Suganya_Ganesan on Jan 18, 2016
Latest reply on Jan 20, 2016 by Suganya_Ganesan

How to get the attribute value for a list of AF Elements in one go.

I need to fetch a particular attribute value for 1000s of AF Elements.

Currently, I am using AFSDK function for each element, but it takes more time.

 

Code Snippet:

foreach (AFElement objMeter in MeterElements)

{

      string strEncoder = objMeter.Attributes["Encoder"].GetValue().Value.ToString();

      dictMeterEncoder.Add(objMeter.Name, strEncoder);

}                    

Outcomes