system.mes.executeMESEvent

Sepasoft MES Module Suite

system.mes.executeMESEvent

These script functions are used to execute an MES event.

system.mes.executeMESEvent(mesObject, eventName, parameters)

Execute an MES event on the specified MES object with parameters.

Syntax

system.mes.executeMESEvent(mesObject, eventName, parameters)

  • Parameters

AbstractMESObject  mesObject

String eventName - Name of the event to execute on the specified MES object.

MESObjectEventParameters parameters - Parameters to pass to the event.

  • Returns

Nothing

  • Scope

All

Python
#Load the MES object and executes event associated with it
mesObject = system.mes.loadMESObject('Box', 'MaterialDef')
system.mes.executeMESEvent(mesObject, 'Event1') 

system.mes.executeMESEvent(mesObject, eventName)

Execute an MES event on the specified MES object.

Syntax

system.mes.executeMESEvent(mesObject, eventName)

  • Parameters

AbstractMESObject  mesObject - The MES object to execute the event on.

String eventName - Name of the event to execute on the specified MES object.

  • Returns

Nothing

  • Scope

All

Python
#Load the MES object and executes event associated with it
mesObject = system.mes.loadMESObject('Box', 'MaterialDef')
system.mes.executeMESEvent(mesObject, 'Event1')

Sepasoft MES Module Suite