system.mes.deriveMESObject

Sepasoft MES Module Suite

system.mes.deriveMESObject

The deriveMESObject allows for an MES Object to be created and have the same properties as the object that is passed to it. This function call be called by passing it an MES Object or by passing it the UUID of an object.

system.mes.deriveMESObject(mesObject, mesObjectTypeName, copyPropertyValues)

Returns a new instance of MES object of the type specified by the mesObjectTypeName parameter and all applicable properties derived from the MES object specified by the mesObject parameter will be copied to it.

Syntax

system.mes.deriveMESObject(mesObject, mesObjectTypeName, copyPropertyValues)

  • Parameters

AbstractMESObject  mesObject - The MES object to derive the new MES object from

String MES Object Type Name - The MES object type name to base the new instance. This can be one of MES object types defined in MESObjectTypes.

Boolean copyPropertyValues - If true, copy the values of the properties to the new MES object

  • Returns

A new instance of the MES Object Type specified in the mesObjectTypeName parameter

  • Scope

All

Python
#Returns a new instance of specified MES object
newObj = system.mes.deriveMESObject('51b51e30-4d10-41b4-8e0f-ecde5a5d58f1','MaterialClass', True)

system.mes.deriveMESObject(mesObjectUUID, mesObjectTypeName, copyPropertyValues)

Returns a new instance of an MES object of the type specified by the mesObjectTypeName parameter and all applicable properties derived from the MES object specified by the mesObjectUUID parameter will be copied to it.

Syntax

system.mes.deriveMESObject(mesObjectUUID, mesObjectTypeName, copyPropertyValues)

  • Parameters

String mesObjectUUID - The UUID of the MES object to base the new object on

String MESObjectTypeName - The MES object type name to base the new instance. This can be one of MES object types defined in MES Object Types.

Boolean copyPropertyValues - If true, copy the values of the properties to the the new MES object

  • Returns

An AbstractMESObject

  • Scope

All

Python
#Returns a new instance of specified MES object
newObj = system.mes.deriveMESObject('51b51e30-4d10-41b4-8e0f-ecde5a5d58f1','MaterialClass', True)

Sepasoft MES Module Suite