next up previous contents index
Next: UTILITY SETUP UNDO ON/OFF Up: UTILITY SETUP Mode Control Previous: UTILITY SETUP ROTATIONS Mode

UTILITY SETUP SYNONYMS Control

                              

This command enables the user to define and manage command synonyms. Further information on the use of synonyms is given in the Installation and Customisation Guide.


Control Comments
ADD Synonym, Length, Definition Adds a new command synonym to the list
(See Note 1).
LIST [Synonym] Lists the named or all synonym definitions.
DELETE Synonym Deletes the named synonym.
SAVE [Filename] Saves the synonyms to a named file
ON Switches on the use of synonyms.
OFF Switches off the use of synonyms.
The default is off.

Operating system commands may now be used as part of the synonym definitions; they must appear inside double quotation marks, e.g. ""!ls"" for a UNIX system.

Notes:

1.
Defining a new Synonym
To add a new synonym to the list it is necessary to specify the synonym itself, the number of characters that must be typed to identify the synonym, and to give the FEMGV commands that the synonym maps to. Parameter substitution is possible.

Examples:

1.
UTILITY SETUP SYNONYMS ON

This command activates the use of synonyms.

2.
UTILITY SETUP SYNONYMS ADD ISOMETRIC 3 E R T 45 45 45;E F

The synonym `ISOMETRIC' is added to the list of synonyms. The command `ISO' may now be used to obtain the defined rotation, and framing of the model or subset. Note that 3 characters are defined as sufficient to identify this synonym. This is not a true isometric view but serves to illustrate the use of synonyms to define a particular viewing angle.

3.
UTILITY SETUP SYNONYMS ADD ABOVE 2 R R V A

The command e.g. AB 1.5 B .5 may now be used in the place of the rather longer command RESULTS RANGE VALUES ABOVE 1.5 BELOW .5. This technique may be used to abbreviate long or difficult commands.

4.
UTILITY SETUP SYNONYMS ADD ABOVE 2 R R V A $1 B

An even more concise solution for the previous example is obtained by use of parameter substitution. The $1 indicates where the 1st argument entered is to be substituted in the expanded command. The command e.g. AB 1.5 .5 may now be used to generate the command RESULTS RANGE VALUES ABOVE 1.5 BELOW .5.

5.
UTILITY SETUP SYNONYMS ADD PICT 4 R L $1; R N STRESS $2; P C L $3

This defines a synonym called PICT. The $1, $2 and $3 specify that three parameters will be required to satisfy the synonym. If, for example, the user enters PICT CASE1 XX 12 then this will generate the command sequence RESULTS LOADCASE CASE1 ;, RESULTS NODAL STRESS XX ; PRESENT CONTOURS LEVEL 12

6.
UTILITY SETUP SYNONYMS DELETE ISO

This command deletes the synonym `ISO' defined above.

7.
UTILITY SETUP SYNONYMS SAVE david

This command saves a definition of the current synonyms in a file named `david' and this file may be accessed to establish these definitions on a subsequent occasion.

8.
UTILITY SETUP SYNONYMS LIST L

This will list all the synonyms beginning with L.

9.
UTILITY SETUP SYNONYMS ADD FILES 3 "!ls"

This defines a synonym called FILES which will list (in the dialogue area) all the files in the current directory for a UNIX installation. On a PC the command is similar, but 'ls' is replaced by 'dir'.


next up previous contents index
Next: UTILITY SETUP UNDO ON/OFF Up: UTILITY SETUP Mode Control Previous: UTILITY SETUP ROTATIONS Mode

Femsys Limited
1st October 1999