Next: UTILITY SETUP UNDO ON/OFF
Up: UTILITY SETUP Mode Control
Previous: UTILITY SETUP ROTATIONS Mode
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:
Examples:
This command activates the use of synonyms.
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.
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.
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.
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
This command deletes the synonym `ISO' defined above.
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.
This will list all the synonyms beginning with L.
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'.
Femsys Limited