Skip to end of metadata
Go to start of metadata

Is there any way to disable live analysis via scripting?

yes in MES 3.0

Step-by-step guide

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)

caution: Any running operations will cause disabling the Live Analysis for that line to fail


Live Analysis