Is there a method available to retrieve the default values for all tag properties either within the Python API or the JDK?
IA Devs: for alarm properties there are a couple classes that can be imported which will show the defaults: CommonAlarmProperties and AlarmModeProperties. Is there an similar class for tag properties?
1 Like
Looks like the system.tag.getAttribute( tagPath, attribute ) function returns either the default or overwritten property value.
https://docs.inductiveautomation.com/display/DOC79/system.tag.getAttribute
(even though its deprecated and replaced by system.tag.read())
So, Iād just need a list of all available properties.
Though, that list would change depending on the type of tag.
https://docs.inductiveautomation.com/display/DOC79/Tag+Properties
Is there and equivalent of CommonAlarmProperties for tag properties?
Look here:
Try this:
from com.inductiveautomation.ignition.common.sqltags.model import TagProp
for x in TagProp.values():
print x
1 Like