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!