ansys.mapdl.core.Mapdl.abbres#

Mapdl.abbres(lab='', fname='', ext='', **kwargs)#

Reads abbreviations from a coded file.

Mechanical APDL Command: ABBRES

Parameters:
labstr

Label that specifies the read operation:

  • NEW - Replace current abbreviation set with these abbreviations (default).

  • CHANGE - Extend current abbreviation set with these abbreviations, replacing any of the same name that already exist.

fnamestr

File name and directory path (248 characters maximum, including the characters needed for the directory path). An unspecified directory path defaults to the working directory; in this case, you can use all 248 characters for the file name. The file name defaults to Jobname.

extstr

Filename extension (eight-character maximum). The extension defaults to ABBR if Fname is blank.

Notes

Warning

This function contains specificities regarding the argument definitions. Please refer to the command documentation for further explanations.

Argument Descriptions

  • lab : str - Label that specifies the read operation:

    • NEW - Replace current abbreviation set with these abbreviations (default).

    • CHANGE - Extend current abbreviation set with these abbreviations, replacing any of the same name that already exist.

  • fname : str - File name and directory path (248 characters maximum, including the characters

needed for the directory path). An unspecified directory path defaults to the working directory; in this case, you can use all 248 characters for the file name. The file name defaults to Jobname.

  • ext : str - Filename extension (eight-character maximum). The extension defaults to ABBR if

Fname is blank.

The abbreviation file may have been written with the abbsav command. Do not issue abbres,NEW while inside an executing abbreviation. Doing so will cause all data for the executing abbreviation to be deleted.

This command is valid in any processor.