5.1. New Session Command

To record your actions in CFX-Pre in a session file:

  1. Select Session > New Session. This opens the Set Session File dialog box, where you can enter a filename for your session file. Once you have saved the file, it becomes the current session file.


    Note:  This command is available only when a session file is not currently being recorded.


  2. Browse to the directory in which you want to create the session file, and then enter a name for the file ending with a .pre (CFX-Pre) extension.

  3. Click Save to create the file.

  4. To start recording to the session file, select Session > Start Recording.

  5. To stop recording to the session file, select Session > Stop Recording.


Important:  Session files must not contain > undo commands. These commands would produce errors when playing back the session file.


If you create more than one session file during a CFX-Pre session, the most recently created file is the current session file by default. You can set a different file to be the current session file by selecting an existing file from the New Session > Set Session File window and then clicking Save. Because the file exists, a warning dialog box appears:

  • If you select Overwrite, the existing session file is deleted and a new file is created in its place.

  • If you select Append, commands will be added to the end of the existing session file when recording begins.


Note:  By default, CFX-Pre does not continuously write commands to a session file while you are working on your simulation. You can change a setting in Edit > Options so that a session file is recorded by default. If a session file is being recorded by CFX-Pre, whether by default or intentionally, a new session file cannot be recorded.