## 16.4. Running cfx5export from the Command Line

In the following code, `[ ]` denotes an optional argument, and `<>` and `#` denote that substitution of a suitable value is required. All other arguments are keywords, some of which may have a short form.

Note: `-cgns`, `-ensight`, `-fieldview`, `-patran`, or `-custom` should be the first option on the command line.

- `-cgns` creates files suitable for an application that supports the CGNS format.

- `-ensight` creates files suitable for input into the EnSight postprocessor.

- `-patran` creates files suitable for input into the MSC/PATRAN postprocessor.

- `-fieldview` creates files suitable for input into the FIELDVIEW postprocessor.

- `-custom` should be used if there is a need for custom-defined export formats. For details, see Running a Customized Export Program using cfx5export from the Command Line.

For all standard options (`-cgns`, `-patran`, `-fieldview`, and `-ensight`), the source ANSYS CFX file `<file>` is the same file as would be specified under Tools > Export > Results File in CFX-Solver Manager. The optional file entered as `-name <file>` is the filename used as the basename for the files generated as part of the export process (this is equivalent to what is specified under Tools > Export > Export File).

Release 18.2 - © ANSYS, Inc. All rights reserved.