Sepasoft MES Module Suite
system.mes.batch.recipe.syncPhasesAndSaveRecipe(mesObjectList:MESObjectList)
Synchronize phases to their latest version and save master recipe and associated logic objects that were created or modified. Use this function instead of the system.mes.saveMESObject() script function. A validation of the recipe will be done prior to saving.
|
Version Specific: 3.81.10 RC3 and later |
Parameters
mesObjectList: MESObjectList A MESObjectList object containing the BatchMasterRecipe and associated BatchMasterLogic objects to save.
Returns
None
Example Script
Python |
recipeName = 'Test Recipe' recipeClassName = 'Test Recipe Class' recipeClassLink = system.mes.batch.recipe.loadRecipeClass(recipeClassName, None).asLink() recipeLink = system.mes.batch.recipe.getRecipeLink(recipeName, recipeClassLink) saveList = system.mes.batch.recipe.loadRecipe(recipeLink) syncResult = system.mes.batch.recipe.syncPhasesAndSaveRecipe(saveList) |
Sepasoft MES Module Suite