Sepasoft MES Module Suite
system.mes.batch.recipe.copyRecipe(copyFromLink, newRecipeName)
Copy an existing master recipe to a new one. The new master recipe is not saved and further modifications can be made before using the saveRecipe script to save it.
copyRecipe(copyFromLink, newRecipeName) → MESObjectList
Syntax
copyRecipe(copyFromLink, newRecipeName)
- Parameters
MESObjectLink copyFromLink - The link for a master recipe to make a copy from.
String newRecipeName - The name of the new recipe. Note, master recipe names must be unique to the parent master recipe class.
- Returns
A MESObjectList object containing the new BatchMasterRecipe and associated BatchMasterLogic objects.
- Scope
All
Example
Python |
recipeClass = system.mes.batch.recipe.loadRecipeClass("Recipes", None) rec = system.mes.batch.recipe.getRecipeLink('Recipe A', recipeClass.asLink()) newrec = system.mes.batch.recipe.copyRecipe(rec, 'New Recipe A') print(newrec) |
Sepasoft MES Module Suite