The following two functions can be used retrieve variables that refer to a specific procedure in a process file (input/output):
GetUPVarVal(procName As String, VarID As VarID, val)
GetUPVarVal2(procName As String, VarID As VarID, val, val2)
GetUPVarVal3(procName As String, VarID As VarID, val, val2, val3)
GetUPVarVal4(procName As String, VarID As VarID, val, val2, val3, val4)
And the next two functions can be used for setting input variables related to the specific procedure:
SetUPVarVal(procName As String, VarID As VarID, val)
SetUPVarVal2(procName As String, VarID As VarID, val, val2)
SetUPVarVal2(procName As String, VarID As VarID, val, val2, val3)
The first argument is the procedure name, the second argument (varID) is the variable identifier that specifies the variable we want to access and the third argument (val) is the variables value. The fourth/fifth arguments (val2 / val3), of VARIANT type, are extra identifiers needed for the variable we want to access in the functions with four/five arguments.
The Variable ID that needs to be used for each variable is listed in Procedure Variables. Please, see Accessing Pro-Designer Variables with COM for general information on accessing the Pro-Designer variables with the COM Server.
In order to retrieve the removed leftover contents of shared equipment, before they are reused again, use function:
GetUPEmptiedContentsVarVal(procName As String, VarID As VarID, val, val2)
The first argument is the name of the procedure that has left material in the final contents of the equipment after the conclusion of its steps. This material will be emptied out in a local receptacle and can be tracked using this function. For information on how leftover material can be emptied from shared equipment, see Empty Contents Before Reuse Dialog. The second argument (varID) is the variable identifier that specifies the variable we want to access and the third argument (val) is the variables value. The fourth argument (val2), also of VARIANT type, is an extra identifier for specifying the component name. The Variable ID that needs to be used for each variable is listed in Procedure Variables.
For a sample script that illustrates the use of these functions, see Scripts For Procedure Variables.