Disable Live Analysis via Scripting
Python |
f = system.mes.object.filter.createFilter() f.setMESObjectTypeName('Line,LineCell,LineCellGroup') objs = system.mes.loadMESObjects(f) saveList = system.mes.object.list.createList() for obj in objs: la = obj.getLiveAnalysis() if not la.isEmpty(): saveList.add(obj) for prop in la: # pick one prop.setActive(False) # setActive = can be turned back on # or #prop.setEnable(False) # setEnabled = soft delete (still exists in DB but no longer retrieved with the object) system.mes.saveMESObjects(saveList) |
|
Any running operations will cause disabling the Live Analysis for that line to fail |
See: