Read tag properties with a script?

Hello. First time poster. I need help identifying the python function I need to complete a task…I have a goal of finding all of the tags with a specific property associated with it.

When I read the XML file, I am able to see all of the properties of all of the tags:

<[color=#BF00BF]Property name=“Documentation”[/color]>Documentation
<[color=#BF00BF]Property name=“Tooltip”[/color]>It’s gonna blow!

…But I am not able to figure out how to identify the “Property Name” property of a tag using the tag functions in the ignition library.

[color=#0040FF]In short, I am trying to write a script to find all tags with the property name of “ToolTip” but I am unable to identify which tags have that property name. [/color]

Unfortunately, I don’t see any functions that expose the Property names. Am I missing anything? Can this be done with the existing functions?

Thanks for any help. Sorry if I did anything to break forum etiquette. :slight_smile:

Do you have to do this with export files?

You can accomplish this with just scripting.

Something like this would do it:

myTagFolder = "Devices"
tags = system.tag.browseTags(myTagFolder)
tooltipPaths = ["%s.tooltip" % tag.path for tag in tags]
tooltipResults = system.tag.readAll(tooltipPaths)

for tag, result in zip(tags, tooltipResults):
    if len(result) > 0:
        print tag.name, result.value

.