system.tag.addTag not working

Any idea why I get this error: com.inductiveautomation.ignition.designer.gui.tool’ object has no attribute ‘addTag’

Can you post the code you’re trying to run?

Everything is commented out as it is not working.
I will also upgrade my software from 7.9.6 to 7.9.10

#dName = "IS1.CB1"

#system.tag.addTag(parentPath='', name="IS1", tagType="Folder")

###system.tag.addTag(  parentPath="",
###								name= dName + ".TagOPC",
###								tagType="OPC",
###								dataType="Int2",
###								attributes={"OPCServer":"Ignition OPC-UA Server",
###											"OPCItemPath": dName + "HR1"})

Where are you calling this from? Try specifying tag provider?

From the project script, also tried the script console.
Both not working, addTag is not an attribute of system.tag

What is the tag provider?

Try this and see if it works for you. If you arent using the default tag provider you will need to put your tag provider name in the brackets by folderpath

dName = 'testdevice'
folderpath = '[default]' + dName + '/'	
scaledLow = '100'
scaledHigh = '100'
scaleMode = 0
tagname = 'IS1'
doc = 'doc'
opcserver = 'Ignition OPC-UA Server'
opcitempath = 'HR1'
system.tag.addTag(parentPath=folderpath, name=tagname, tagType="OPC", dataType="Int2", attributes={"OPCServer":"%s" % opcserver, "OPCItemPath":"%s" % opcitempath,"Documentation":"%s" % doc,})

Traceback (most recent call last):
File “”, line 10, in
AttributeError: ‘com.inductiveautomation.ignition.designer.gui.tool’ object has no attribute ‘addTag’

Same error.

Called support.

It seems that the function addTag is only available if the Vision Module is installed.
Not documented of course.

Should work on the Gateway, no where else without the Vision Module.

Good to know.

Yeah, there’s a handful of functions that only work in the designer if you have the Vision module installed, but they work like normal in the gateway either way.

It’s a bit of an oversight that the functions are missing from the designer scope when Vision isn’t installed but it only effects your ability to run them in the script playground.