system.recipe.getCurrentItemRecipe

Sepasoft MES Module Suite

Description

Return the current selected recipe name for a production item.

Syntax

system.recipe.getCurrentItemRecipe(itemPath)


  • Parameters

String itemPath - The item path to a production line, cell, cell group or location.

  • Returns

Current selected recipe name of specified production item.

  • Scope

All

Code Examples

Code Snippet

Code
#---- getCurrentItemRecipe----#
#-- function: system.recipe.getCurrentItemRecipe(itemPath)
#                                                 (str)
#---

itemPath = "[global]\Enterprise\New Site\Packaging\packagingLine1\Filler"
currentRecipe = system.recipe.getCurrentItemRecipe(itemPath)
print 'Current Recipe = %s' %currentRecipe

Output

Code
Current Recipe = PC_007-IBC-RB

Sepasoft MES Module Suite