Accessing the History of a Script

When writing a script, you can access the history of your script in the form of snapshots. A snapshot contains the text edited in the EKL editor and the time it was generated. The snapshot is generated periodically only if the expression text is modified. The list of snapshots is displayed in the History dialog box.

  1. Enter a script.
  2. In the editor, right-click the script, and select History.
    The History dialog box opens showing a list of the snapshots. The list displays the time when the snapshot was generated. At the beginning, the list is empty because no snapshot has been generated yet. When editing, snapshots are generated. They are displayed in the list. However the list is not refreshed automatically. You must relaunch the command to get the last snapshots
  3. Select a snapshot and click Browse.
    A box appears showing the content of the snapshot.
    Note: You can:
    • Click Restore to replace the text in the editor with the text of the snapshot.
    • Click Remove to delete the selected snapshot.
    • Click Remove all to delete all the snapshots. Deleted snapshots are not shown in the dialog box.
  4. Select a snapshot and click Restore.
    Click OK to confirm. The script is inserted into the original editor.

  • You can modify the interval the snapshots are taken using the EKL_SNAPSHOT_HISTORY_TIME variable. For example, enter set EKL_SNAPSHOT_HISTORY_TIME=60 sets the interval to one minute.
  • The history is not saved with the model. It is lost when closing the session.