ExecExtFunc ()

Executes an extra function defined by you.

Usage

ExecExtFunc( _funcName, _imports = None, **kw )

Parameters

_funcName (string)
The function name which should be executed.
_imports (string)
Name of the modules which should be imported before executing the function.
**kw (dictionary)
The desired arguments you can pass to ExecExtFunc.

Return Value

None

Errors

The _funcName must be a valid name of a pre-defined function.

Description

This routine executes an extra function defined by you. The function name is defined by _funcName which should be a valid pre-defined function and the modules which should be imported before executing the function are defined by _imports. You can pass any number of arguments to ExecExtFunc specified by kw. For example,
node = ROOT + RS + 'User' + RS + 'HEAT_SINK'
sinkType = None
if not sinkType:
   sinkType = GetEnum( path = node, par = 'heat_sink_type')
if not fileName:
   prefix = string.replace( sinkType, " ", "" )
   suffix = ".x_t"
   indx = acuUtil.getMaxFileInd( prefix, suffix )
   if indx == -1: indx = 1
   else: indx += 1
   fileName= prefix + str(indx) + suffix
ExecExtFunc( _funcName = "acuHeatSink.heatSinkModel",
            _imports = "acuHeatSink",
            fileName = fileName,
            sinkType = sinkType )