cfopen#
- MacroFiles.cfopen(fname='', ext='', loc='', **kwargs)#
Opens a “command” file.
Mechanical APDL Command: *CFOPEN
- Parameters:
- 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 CMD if
Fnameis blank.- loc
str Determines whether existing file will be overwritten or appended:
(blank)- The existing file will be overwritten.APPEND- The file will be appended to the existing file.
- fname
Notes
Warning
This function contains specificities regarding the argument definitions. Please refer to the command documentation for further explanations.
Argument Descriptions
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 CMD if
Fnameis blank.loc : str- Determines whether existing file will be overwritten or appended:(blank)- The existing file will be overwritten.APPEND- The file will be appended to the existing file.
Mechanical APDL commands specified by the cfwrite command are written to the file opened by cfopen. Data processed with the vwrite command are also written to this file if the file is open when the vwrite command is issued.
Issue the cfclos command to close the command file.
This command is valid in any processor.