AFAttribute.ConfigString property returns the current configuration of the attribute's data reference as a string.
If you uncheck ReadOnly for the PI Point attribute, then your string will contain ReadOnly=False
1 of 1 people found this helpful
You can also check the attribute's SupportedMethods property and see if the AFDataReferenceMethod.SetValue is set. This enumeration has the FlagsAttribute so multiple values may be set on this property. If 'SetValue' is not set, then it is a read-only attribute.
2 of 2 people found this helpful
That particular checkbox applies to PI points using the AFAttribute.SetValue method. That checkbox is ignored for PI points using the AFAttribute.Data.UpdateValue or AFAttribute.Data.UpdateValues methods. That means you could have ReadOnly checked as True, and code could still write to the tag using UpdateValue or UpdateValues.