system.recipe.exportRecipe

Sepasoft MES Module Suite

system.recipe.exportRecipe(filters)

Adds a comment note to the current run for the selected line. See the Import / Export section of Using the Recipe Editor | Vision for csv file format and other information.

Syntax

system.recipe.exportRecipe(filters)

  • Parameters

String  filters - Filter statements separated by commas. See the Settings Recipe Analysis Provider for more information on the available filters.

String note - Note to be stored in the recipe change log. If no log entry is desired, provide an empty string as a placeholder.

  • Returns

CSV formatted string containing the recipe values.

  • Scope

All

Python
itemPath = 'Enterprise\New Site\Packaging\packagingLine1\Filler'
filters = "Recipe Name=PC_007-IBC-RB, Item Path=%s" % (itemPath)
csv = system.recipe.exportRecipe(filters, '')
#-- if there is an error due to a problem with the filter it will be reported out in the file created by the system.file.writeFile
system.file.writeFile("C:\\Temp\\Recipe_export.csv", csv, False)

Output

Code
 Recipe_Name,Value_Name,Item_Path,Description,Units,Data_Type,Format,Recipe_Value,Assigned_By
"PC_007-IBC-RB","Max Temperature","Enterprise\New Site\Packaging\packagingLine1\Filler","","deg","Int4","#,##0.##","92","Enterprise\New Site\Packaging\packagingLine1\Filler - Default"
"PC_007-IBC-RB","Min Temperature","Enterprise\New Site\Packaging\packagingLine1\Filler","","deg","Float8","#,##0.##","85.3","Enterprise\New Site\Packaging\packagingLine1\Filler - Default"
"PC_007-IBC-RB","IBC Sugar Percentage","Enterprise\New Site\Packaging\packagingLine1\Filler","","","Float8","#,##0.##","17.5","Enterprise\New Site\Packaging\packagingLine1\Filler - Default"
"PC_007-IBC-RB","Line Speed","Enterprise\New Site\Packaging\packagingLine1\Filler","","cpm","Int4","#,##0.##","110","Enterprise\New Site\Packaging\packagingLine1\Filler - Default"

Sepasoft MES Module Suite