Sepasoft MES Module Suite
system.mes.saveMESObject(mesObject)
Save the MES object passed mesObject parameter. This will update the active object in memory of the Ignition server and save the settings to the database.
|
If after saving the MES Object you wish to view the changes or make further changes, you should first load the object again using system.mes.loadMESObject() or the .update() method on the MES Object Selector to ensure that you get the updated object. |
Not Recommended for Schedule Objects
|
Schedule objects affect multiple objects within the MES model. Therefore, there is a specific system.mes.saveSchedule() function to manage the lifecycle and notifications necessary for scheduling. Please do not use the generic saveMESObject() for schedules. |
Syntax
system.mes.saveMESObject(mesObject)
Parameters.
AbstractMESObject mesObject - The MES object to save.
Returns
Nothing
Scope
All
Python |
#To save MES object. matClass = system.mes.createMESObject('MaterialClass') matClass.setPropertyValue('Name', 'Turkey') matClass.addCustomProperty('Weight', 'Float8', 'Weight of the turkey', 'Lbs', True, True) system.mes.saveMESObject(matClass) |
Sepasoft MES Module Suite