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
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 )