www.kxcad.net Home > CAE Index > MSC Software Index > Adams MD R2 Index
A macro is a single command that you create to execute a series of Adams/View commands. To create a macro, you give Adams/View the list of commands you want executed, as well as the new command (i.e., the macro) that will execute them.
‘interface push_button create push_button_name .gui.mbar.tools.test label
Specifies the command string to be entered by the user to execute the macro. Specifies whether or not to the entire macro can be undone with a single undo command. Specifies the text that is to be used as the command or topic string when getting help on a macro. Specifies the text that is to be used as the command or topic string when getting help on a macro. Allows the user to specify if a panel is to be created for the specified macro.
1. Adams/view will not allow you to have two macros with the same full name, so you must provide a unique name. You must separate multiple macro names by commas. See Also getting_started - for naming syntax and wildcards.
2. The user entered command is a string is a list of keywords separated by blanks. The keywords can match existing keywords, but the final command defined must be unique. For example: user_entered_command = "force my_force create" If this parameter is not entered, the name of the macro will become the new command.
3. You can specify the Adams/view commands that are to be executed when the macro is used with the COMMANDS_TO_BE_EXECUTED parameter on the MACRO READ and MACRO MODIFY commands, or from a file on the MACRO READ command. Adams/view does not check your entries in this field for correct syntax when you create the macro, only when the macro is executed. You enter these commands as quoted strings separated by commas. You can have quotes inside a string by proceeding them with a backslash "\". You can indicate parameters to associate with the macro be placing a dollar sign '$' followed by the name of the parameter you want anywhere in the commands (see MACRO).
4. The help that is obtained by this string is the same as you would get if you supplied the help string to the command: help command_or_topic=. You must specify the entire file name, there is no default extension. The search path facility is used to find the specified file.
5. If there are not parameters in the macro, no panel will be created. The name of the macro panel will be 'macro_' appended with the macro name. For example, if the name of macro being created or modified is MAC1, the panel will be named 'macro_MAC1'.
1.
1. You may identify a macro by typing its name. If a macro is available by default, you may identify it by entering its name only. If it is not, you must enter its full name. If you type a "?", Adams/view will list the macros available by default.