# Method to get default tag property values

**URL:** <https://forum.inductiveautomation.com/t/method-to-get-default-tag-property-values/22577>\
**Category:** Module Development\
**Created:** [February 14, 2019, 5:15pm UTC](https://forum.inductiveautomation.com/t/method-to-get-default-tag-property-values/22577 "2019-02-14T17:15:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trent.Boudreaux](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/trent.boudreaux/32/4138_2.png) [@Trent.Boudreaux](https://forum.inductiveautomation.com/u/Trent.Boudreaux)\
**Post date:** [February 14, 2019, 5:15pm UTC](https://forum.inductiveautomation.com/t/method-to-get-default-tag-property-values/22577/1 "2019-02-14T17:15:45Z")

</div>

Is there a method available to retrieve the default values for all tag properties either within the Python API or the JDK?

---

<div class="post-metadata">

**Author:** ![Kevin.McClusky](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kevin.McClusky](https://forum.inductiveautomation.com/u/Kevin.McClusky)\
**Post date:** [February 14, 2019, 5:48pm UTC](https://forum.inductiveautomation.com/t/method-to-get-default-tag-property-values/22577/2 "2019-02-14T17:48:49Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Trent.Boudreaux](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/trent.boudreaux/32/4138_2.png) [@Trent.Boudreaux](https://forum.inductiveautomation.com/u/Trent.Boudreaux)\
**Post date:** [February 14, 2019, 9:40pm UTC](https://forum.inductiveautomation.com/t/method-to-get-default-tag-property-values/22577/3 "2019-02-14T21:40:10Z")

</div>

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](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](https://docs.inductiveautomation.com/display/DOC79/Tag+Properties)

Is there and equivalent of CommonAlarmProperties for tag properties?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 14, 2019, 10:07pm UTC](https://forum.inductiveautomation.com/t/method-to-get-default-tag-property-values/22577/4 "2019-02-14T22:07:31Z")

</div>

Look here:

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

Try this:

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

for x in TagProp.values():
  print x

```
