Sepasoft MES Module Suite
system.mes.batch.recipe.getRecipeLink(name, parentLink)
Return a link to the master recipe specified by the name parameter. Links are lightweight and hold the key information of an MES Object and mesObjectLink.getMESObject() can be used to get the actual BatchMasterRecipe object.
getRecipeLink(name, parentLink) → MESObjectLink
Syntax
getRecipeLink(name, parentLink)
- Parameters
String name - The name of the master recipe. Note, master recipe names must be unique to the parent master recipe class.
MESObjectLink parentLink - A optional link to a parent BatchMasterRecipeClass object. If None is provided for this parameter, then it will assign the BatchRootMasterRecipe object as the parent.
- Returns
The MESObjectLink for the master recipe.
- Scope
All
Python |
recipeClass = system.mes.batch.recipe.loadRecipeClass("Recipes", None) recipe = system.mes.batch.recipe.getRecipeLink("A Recipe", recipeClass.asLink()) |
Sepasoft MES Module Suite