External apps

Purpose

To run other applications from inside Alias.

When you use the External Application Interface, you can pass data to an Alias OpenModel program that modifies the data and returns the results back into the Alias interactive package.

You can also use this facility to run any other application, which means you do not have to minimize (or lower) your Alias session, and type the command from a UNIX window.

How to Use

Select File External apps and the External Applications control window is displayed.

External Applications Control Window

Note: UNIX commands that are usually entered from a shell require that you specify a window in which they can run. If the command just prints some information and exits (like date or df -k), then you will also have to specify an option to hold the window. Here are some examples of running standard commands:

To open a window that displays the top processes running on your machine:

xwsh -geometry 80x40+100+50 -e top
To open a window that displays the amount of free disk space on your machine:

xwsh -geometry 80x40+100+50 -hold -e df -k

Application Input Options

Write Input

If set to ON, Alias saves a wirefile for input into the application prior to executing it.

Input Scope

Click to the right of the heading to display the Input Scope menu.

If you select ALL, the input wirefile includes the whole model.

If you select ACTIVE, the input wirefile includes only picked (or active) portions of the model.

Input File

If Write Input is set to ON, the name displayed in this field is the filename that Alias calls the input wirefile.

Note: If you provide an input file, whether Write Input is ON or OFF, it is assumed to be the input filename for the application. Therefore, it is passed to the application replacing any %i strings in the Application Name field.

Application Output Options

Read Output

If set to ON, Alias waits for the application to finish, and reads its output as a wirefile.

Replace

If set to ON, data read back from the application replaces data written out by Alias (note that the data replaced depends on the Replace Scope setting).

If set to OFF, data read back from the application is appended to the Alias model.

Replace scope

Click to the right of the heading to display the Input Scope menu.

If you select ALL, the output wirefile replaces the whole Alias model, and a Delete all objects confirm box is displayed.

If you select ACTIVE, the output wirefile replaces only picked (or active) portions of the model.

Note: Only top-level nodes can be replaced (for example, not geometry or lights). These nodes can only be replaced by nodes of the same type and number. Any additional nodes are simply added to the left of the model in the DAG.

External Applications

This holds a list of the external applications you have defined. This list is saved from session to session.

Application Name

Commands that provide a complete user interface can simply be typed into the Application Name section.

For example, double-click on the undefined entry and type gr_osview -a to change it. Now close the External Applications window. This saves the value you just typed in. The next time you want to run gr_osview -a, just open the External Applications window, click once on the gr_osview -a entry in the list of application names, then click the Go button.

Click the Add button to add an application to the list, or the Delete button to remove one from the list.





aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.