11.8. Example of Journal Recording and Execution

Engineering Knowledge Manager

Administration Guide | Chapter 11: Scripts and Journals |

11.7. Running Journal Scripts |  | 11.9. Running Python and BeanShell Scripts From a Command Window
Prev |  | Next

## 11.8. Example of Journal Recording and Execution

A simple example that you could try involves setting a display preference and capturing your preference selections in a journal file. Executing the journal file would then set your preferences automatically at any given time.

### Recording a Sample Journal

To record a journal in which preferences are set:

1. Start recording a journal file by selecting Scripting > Record Journal.

2. In the Start Journal Recording dialog, select the /Data/My Data folder as the save location, and then specify Test Journal as the journal name. Click OK.

3. Click the user icon in the top right corner of the EKM window and select Settings.

4. In the Settings dialog box, select List Display in the left pane and then enable the Lifecycle Stage check box in the right pane to add a Lifecycle Stage column to your file list display. (Or, make other changes to your preferences that are different than the default settings.) Click OK.

5. Stop recording the journal by selecting Scripting > Stop Recording Journal.

### Testing the Sample Journal Script

To test the sample journal:

1. Click the user icon in the top right corner of the EKM window and select Settings.

2. In the Settings dialog box, click Restore Defaults (or return the list display preferences to their original state). This should remove the Lifecycle Stage column from your file list display.

3. Select Scripting > Run Journal File.

4. In the Run Journal File dialog box, select the Test Journal.jou.py file in your My Data folder, then click OK. Your preferences are automatically updated behind the scenes, and a Lifecycle Stage column is added to your file list display.

Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Prev | Up / Contents | Next

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