Skip to end of metadata
Go to start of metadata

Overview

These script functions are used to load the MES object into local memory.  This delivers the MES object to the user in a script so that the object properties can be read, manipulated, and for some objects runtime execution can be processed.

Method Options


 loadMESObject(mesObjectUUID)
Description

Load and returns a MES object based on the mesObjectUUID parameter.

Syntax

system.mes.loadMESObject(mesObjectUUID)

 

  • Parameters

 String mesObjectUUID - The UUID of the MES object which is its unique ID.

  • Returns

The MES object specified by the UUID.

  • Scope

All

Code Examples
Code Snippet
#Get the MES object for a given uuid.
obj = system.mes.loadMESObject('ff6dc96a-0968-4ae2-8127-ef22bb9cbc02')
 loadMESObject(name, mesObjectTypeName)
Description

Load and returns MES object based on the name and mesObjectTypeName parameters.

Syntax

system.mes.loadMESObject(name, mesObjectTypeName)

 

  • Parameters

 String name- The name of the MES object.

 String MES Object Type Name - The name of the type of MES object. See MES Object Type Name for more details.

  • Returns

The MES object corresponding to the specified MES Object Type Name.

  • Scope

All

Code Examples
Code Snippet
#Get the MES object for a given name and MES object type.
obj = system.mes.loadMESObject('Box', 'MaterialDef')