system.mes.batch.recipe.createTemplate(name, parentLink)

Sepasoft MES Module Suite

system.mes.batch.recipe.createTemplate(name, parentLink) 

Create a master recipe template object that can be further configured. If the template is configured for a Unit Procedure, then Operations can be created from this master logic object using the createLogic function.   The type of template can be specified using the "templateType" argument, which can be either "Unit Procedure" or "Operation".  When "templateType" argument is not specified, defaults to "Unit Procedure".

createTemplate(name, parentLink) → BatchMasterLogic

Syntax

createTemplate(name, parentLink)

  • Parameters

name: String

    • The name of the new master recipe template.

parentLink: MESObjectLink

  • An Optional link of the master recipe template class to add the template to.
  • Default: None
templateType: String
  • "Unit Procedure" Default value if not specified.
  • "Operation"
  • Returns

A new unsaved BatchMasterLogic object.

  • Scope

All

Example - input

Python
bml = system.mes.batch.recipe.createTemplate('UP-Template', None)
print(bml)

Example - output

Python
>>> 
BatchMasterLogic (e3888bc3-8983-4dab-8576-9ae890f36ea6, UP-Template, 1 parents, 0 children, 0 custom properties, 4 complex properties, artifacts not loaded)
>>>



Sepasoft MES Module Suite