Is it possible to create element attributes dynamically and configure the element attributes dynamically?
Yes, that is definitely possible. Please see my post here.
Hello, how to read data element attribute from word and create the attribute in PI system
I have attribute name in an array and foreach of these attributes i must configure the attributes as in define UOM, and mention data type
How can i identify that?
The Type and DefaultUOM properties from the AFAttribute object let you what you have requested. Please refer to the example below which will set up the "degree Celsius" UOM as the default setting for this attribute.
myAttribute.Type = typeof(int);
myAttribute.DefaultUOM = myPISystem.UOMDatabase.UOMClasses["Temperature"].UOMs["degree Celsius"];
Don't forget to check in those changes!
Hope this helps you!
Retrieving data ...