# ToolImportInput()

Imports an input (.inp) file generated by AcuSolve.

## Usage

ToolImportInput( win, dialog = True,
tail = True, args = None,
sendState = None, fileName = None )

## Parameters

win (MainWindowObject)
Parent main window.
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.
args (dictionary)
The arguments of this process.
sendState (lambda function)
A lambda function which sends (reports) the state of the process to the process automation when required.
fileName (string)
The file name that should be imported.

None

## Errors

• The parent main window object specified by win must already exist.
• The sendState lamdba function must be already defined.

## Description

This routine imports an input (.inp) file generated by AcuSolve. The parent main window is given by win. If the dialog is True, the dialog of this tool function will be shown while running. The arguments of this function are given by args. If the tail is True then AcuTail will be started. When the sendState lambda function is called, it sends an event to the Process Automation dialog to report the current state of the process. For example, when sendState('finished') is called an event will be sent to the Process Automation dialog showing that this process is finished. This will allow the dependent process (the process which should be executed after the current process is finished) to be run. For example,
sendState = lambda state : postEvent( procId, state )
ToolImportInput( win, False, False, None, sendState )