abbr#
- Abbreviations.abbr(abbr='', string='', **kwargs)#
Defines an abbreviation.
Mechanical APDL Command: *ABBR
- Parameters:
- abbr
str The abbreviation (up to 8 alphanumeric characters) used to represent the string
String. IfAbbris the same as an existing Mechanical APDL command, the abbreviation overrides. Avoid using anAbbrwhich is the same as an Mechanical APDL command.- string
str String of characters (60 maximum) represented by
Abbr. Cannot include a $ or any of the commandsC***, com, gopr, nopr, quit, ui, or end. Parameter names and commands of the*DOand Use the*IFgroups may not be abbreviated. IfStringis blank, the abbreviation is deleted. To abbreviate multiple commands, create an “unknown command” macro or defineStringto execute a macro file ( use ) containing the desired commands.
- abbr
Notes
Warning
This function contains specificities regarding the argument definitions. Please refer to the command documentation for further explanations.
Argument Descriptions
abbr : str- The abbreviation (up to 8 alphanumeric characters) used to represent the stringString. IfAbbris the same as an existing Mechanical APDL command, the abbreviation overrides. Avoid using anAbbrwhich is the same as an Mechanical APDL command.string : str- String of characters (60 maximum) represented byAbbr. Cannot include a $ or any of the commandsC***, com, gopr, nopr, quit, ui, or end. Parameter names and commands of the*DOand Use the*IFgroups may not be abbreviated. IfStringis blank, the abbreviation is deleted. To abbreviate multiple commands, create an “unknown command” macro or defineStringto execute a macro file ( use ) containing the desired commands.
Once the abbreviation
Abbris defined, you can issue it at the beginning of a command line and follow it with a blank (or with a comma and appended data), and the program will substitute the stringStringforAbbras the line is executed. Up to 100 abbreviations may exist at any time and are available throughout the program. Abbreviations may be redefined or deleted at any time.Use starstatus to display the current list of abbreviations. For abbreviations repeated with
*REPEAT, substitution occurs before the repeat increments are applied. There are a number of abbreviations that are predefined by the program (these can be deleted by using the blankStringoption described above). Note thatStringwill be written to theFileLOG.This command is valid in any processor.