LoadAndWait Recipe

Parent Previous Next

LoadAndWait Recipe

Function to load and wait until a recipe document is finished.


Syntax:

Void LoadAndWait(String RecipeFile):
Load and wait until it's finished the Recipe located in the default path.


Void LoadAndWait(String RecipeFile,String Path):
Load Recipe, and wait until it's finished, in the path passed in the parameter. The path passed in the parameter will replace the Path configured in the Recipe Document.

Params:

String RecipeFile: A String parameter containing the name of the Recipe Document that will be loaded.

String Path: A String parameter containing a Path where the Recipe is located.


Example:

Load the Recipe Document named 'Recipe1' located in the default path.

  


SVRecipe.LoadAndWait("Recipe1");

 


Load the Recipe Document named 'Recipe1' in the path 'C:\Recipes\recipe1.rpf'

  


SVRecipe.LoadAndWait("Recipe1","C:\\Recipes\\recipe1.rpf");

 



 

 Note: The Parameter Path should have the name of the file with the extension .rpf