I’d like to use some of the helper functions scattered throughout com.inductiveautomation.ignition from within Python. In this specific case com.inductiveautomation.ignition.common has QualifiedPathUtils and I’d love to access the toTagPathNew method.
Is there a way of accessing the com.inductiveautomation.ignition packages? I’ve gone through the documentation and it mentions access Java libraries, but it’s not clear if or how I could access com.inductiveautomation.ignition packages?
I did seem to be able to import the package, but perhaps my syntax is wrong:
import com.inductiveautomation.ignition.common QualifiedPathUtils.parsePossibleTagpathNew("prov:default:/tag:test/folder1/folder2:3/TEST420/DA_TEST:/alm:Low Low Test")
When running the above inside the Script Console, I get the following:
Traceback (most recent call last): File "<input>", line 4, in <module> NameError: name 'QualifiedPathUtils' is not defined