system.mes.batch.recipe.loadTemplate(mesObjectLink)

Sepasoft MES Module Suite

system.mes.batch.recipe.loadTemplate(mesObjectLink) 

Load the master recipe logic objects for the template for the specified template. The master recipe template that is loaded can be specified by the link for it or by the name and parent.

loadTemplate(mesObjectLink) → MESObjectList

Syntax

loadTemplate(mesObjectLink)

  • Parameters

MESObjectLink mesObjectLink - The link of the master recipe template to load.

  • Returns

A list containing all BatchMasterLogic objects for the template.

  • Scope

All

Code Examples

Python
UPT = system.mes.batch.recipe.getTemplateLink('UnitProcedureTemplate')
objList = system.mes.batch.recipe.loadTemplate(UPT)
for obj in objList:
  print(obj)
  if (obj.getLogicType().getFriendlyName() == 'Procedure'):
    print('is a Proceedure')
  if (obj.getLogicType().getFriendlyName() == 'Unit Procedure'):
    print('is a Unit Proceedure')
  if (obj.getLogicType().getFriendlyName() == 'Operation'):
    print('is an Operation')

Output

Python
>>> 
BatchMasterLogic (cc807043-dc99-4922-9164-9bdd562450a1, UnitProcedureTemplate, 1 parents, 0 children, 0 custom properties, 4 complex properties, artifacts not loaded)
BatchMasterLogic (d4959f18-4f6f-45ef-8114-3890dbccd6af, UP2, 0 parents, 0 children, 0 custom properties, 4 complex properties, artifacts not loaded)
>>> 

Sepasoft MES Module Suite