Homepage | About EASA | Contact
EASA drives software applications in their batch mode. Therefore, pre-existing batch input files must be available for an EASAP to work, and these files may need to be modified by an author to work properly with an EASAP. Batch input files only need to be modified if they contain settings or commands that are affected or dependent on user inputs.
Note: All batch files, modified or not, need to be uploaded onto the EASA Server and into the EASAP folder using the Files selection under the Authoring menu or the Files tab in EASAP Builder.
Once you have determined that a batch file requires modification, then there are two steps involved:
To create Templates from existing batch files, you will need to edit the files by inserting DORs at the appropriate locations within these files. There are two basic usages of DORs within batch files:
Note: When editing template batch files, you will need to replace any “full paths” with “local paths”, for example replace “C:\Test\run.bat” with “.\run.bat”.
EASA contains a tool called the Template Editor that is designed to simplify the process of adding DORs into text files, such as template batch files. In addition to adding DORs to files, the Template Editor can also be used like a text editor to type in other changes to the file. The Template Editor can also be used to add DORs into files used in the presentation of results in reports (See “Building a Report” on page 301]] for more details).
The Template Editor is accessed by clicking on one of the Open Template Editor buttons () or by selecting Template Editor under the Authoring Menu, and then by clicking on one of the Edit buttons (
) within the ‘Template Files’ table. When you click on an Edit button, the Template Editor will appear in a separate window as shown below.
Basic functions expected within a text file editor are present in the form of both menu picks under the File and Edit menus and as buttons on the editor’s toolbar. Descriptions of the individual buttons on the toolbar are provided in Table 12.2.
Icon | Name | Function |
---|---|---|
![]() | Save File | Saves current version of the file. [Ctrl-S] |
![]() | Refresh File | Refreshes the display of DORs in the file. |
![]() | Undo | Un-does last action. Multiple undo’s allowed. |
![]() | Redo | Re-does last action. Multiple redo’s allowed. |
![]() | Cut | Cuts the selected text. [Ctrl-X] |
![]() | Copy | Copies the selected text. [Ctrl-C] |
![]() | Paste | Pastes the previously cut or copied text. [Ctrl-V] |
![]() | Find | Finds typed in text within file. [Ctrl-F] |
![]() | Select DORs | Selects all DORs containing typed text within file. |
![]() | Goto Line Number | Positions cursor at beginning of typed line number. [Ctrl-G] |
![]() | Filter DOR List | Shows only objects in DOR List matching search string entered |
![]() | Reset DOR List | Resets display in DOR List to all available objects |
![]() | Insert DOR | Inserts a DOR in the selected file location for the selected object in the DOR List |
![]() | Remove DOR | Removes the selected DOR from the file and replaces it with the original value |
![]() | DOR Name View | Displays DORs as bold colored object names |
![]() | DOR Value View | Displays DORs as bold colored values of the objects |
![]() | DOR Text View | Displays the full syntax of DORs in the file |
![]() | Format DOR | Sets the number format for the selected DOR |
Some important menu functions not provided in the toolbar are:
Note: The Save function always writes over the previous version of the file.
Adding a DOR The main purpose of the Template Editor is to add DORs to text files. The process for adding a DOR is as follows:
Note: For certain types of objects, e.g. Compute objects, their Unit Group parameter must be set to a Dimensional Group, in order for a unit to be specified in a DOR of the object.
The EASA Text File Editor is a basic file editor that is accessed by clicking on one of the Edit buttons () within the ‘Current Files’ table found on the Files page under the Authoring Menu. This text editor can be used as an alternative to the Template Editor. However, you will need to take care to type in the proper syntax for any DORs inserted into a file. When you click on an Edit button, the editor will appear in a separate window as shown below.
Basic functions expected within a text file editor are present in the form of both menu picks under the File and Edit menus and as buttons on the editor’s toolbar. Descriptions of the individual buttons on the toolbar are provided in the table below.
Icon | Name | Function |
---|---|---|
![]() | Save File | Saves current version of the file. [Ctrl-S] |
![]() | Reload File | Reloads the last saved version of the file. [Ctrl-R] |
![]() | Undo | Un-does last action. Multiple undo’s allowed. [Ctrl-Z] |
![]() | Redo | Re-does last action. Multiple redo’s allowed. [Ctrl-Y] |
![]() | Delete | Deletes the selected text from the file. [Delete] |
![]() | Cut | Cuts the selected text. [Ctrl-X] |
![]() | Copy | Copies the selected text. [Ctrl-C] |
![]() | Paste | Pastes the previously cut or copied text. [Ctrl-V] |
![]() | Find | Finds typed in text within file. Not case sensitive. [Ctrl-F] |
![]() | Replace | Finds typed in text and allows found text to be replaced with new text. [Ctrl-H] |
Toolbar buttons The only menu functions not provided in the toolbar are:
Note: The Save function always writes over the previous version of the file.
In this example, a batch file will be modified by inserting two DORs. Figure 12.12 shows the relevant section of the file prior to modification. The process of editing the batch file and transforming it into a template file is outlined in the following steps: