## 5.3. Play Session Command

A session file is a record of the actions performed during a CFX-Pre session, saved to a file when you have defined a session filename and have clicked Session > Start Recording. By default, this file is stored in your working directory.

After you have recorded a session file, you can select Session > Play Session, which opens the Play Session File dialog box in which you can select the session file to play. The commands listed in the selected session file are then executed.

Important: If a session file is played while a current simulation is open, existing data will be lost in the following situations:

- If the session file starts a new simulation (that is, if it contains a `>load` command), then the current simulation is closed without saving.

- If the session file does not contain a `>load` command, the behavior is the same as importing a CCL file using the Append option. For details, see Append or Replace. Existing objects with the same name as objects defined in the session file are replaced by those in the session file.

To play a session file:

1. From the menu bar, select Session > Play Session.

2. Browse to the directory containing the session file and select the file you want to play.

3. Click Open to play the session file.

Note: You can play session files in stand-alone CFX-Pre, but not in CFX-Pre in ANSYS Workbench.

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