ProcDef ()
Defines a new process to be run.
Usage
proc = ProcDef( id, name, dialog, tail, func, depProc,
args = None, depState = 'finished' )
Parameters
- id (integer)
- ID of the process.
- name (string)
- Name of the process.
- dialog (boolean)
- A flag defining if the Process dialog should be shown or not.
- tail (boolean)
- A flag defining if AcuTail should be started or not.
- func (function)
- The defined function that should be executed by running the process.
- args (dictionary)
- The function arguments.
- depProc (string)
- Name of the process that the execution of current process depends on.
- depState (string)
- State of the process that the execution of current process depends on.
Return Value
- proc (lambda function)
- The process details (name, dialog) returned as a lambda function.
Errors
The function must be already defined.
Description
prc = ProcDef( id = 2,
name = 'Import Mesh',
dialog = False,
tail = False,
func = ToolImportMesh,
args = None,
depProc = 'Generate Mesh',
depState= 'finished' )