Method to get default tag property values

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:

http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/ignition/common/sqltags/model/TagProp.html

Try this:

from com.inductiveautomation.ignition.common.sqltags.model import TagProp

for x in TagProp.values():
  print x
1 Like