when clicking on the photoeye alarm highlighting the conveyor it is based on
This commit is contained in:
parent
0abb58ffdd
commit
f98724dad6
@ -3,6 +3,17 @@ def handleTagHighlight(view, currentValue):
|
|||||||
|
|
||||||
if tag == "":
|
if tag == "":
|
||||||
return
|
return
|
||||||
|
|
||||||
|
splitedTag = str(tag).split("/")
|
||||||
|
deviceName = splitedTag[-1]
|
||||||
|
|
||||||
|
system.perspective.print(splitedTag)
|
||||||
|
|
||||||
|
tagCopy = tag
|
||||||
|
|
||||||
|
if "PE" in deviceName:
|
||||||
|
tag = "/".join(splitedTag[:2]) + "/Conveyor/" + deviceName[:-3] + "VFD1"
|
||||||
|
system.perspective.print(tag)
|
||||||
|
|
||||||
components = view.rootContainer.getChildren()
|
components = view.rootContainer.getChildren()
|
||||||
|
|
||||||
@ -19,7 +30,6 @@ def handleTagHighlight(view, currentValue):
|
|||||||
if tag == tagPath:
|
if tag == tagPath:
|
||||||
child.props.params["isHighlighted"] = True
|
child.props.params["isHighlighted"] = True
|
||||||
system.perspective.openDock('Docked-East-VFD', params={'tagProps': tagProps})
|
system.perspective.openDock('Docked-East-VFD', params={'tagProps': tagProps})
|
||||||
break
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
Loading…
x
Reference in New Issue
Block a user