11.1. Introduction to Scripts and Journals

Let's begin by defining some terms.

macro

A method defined in a supported language that can execute a sequence of tasks or call other macros. The arguments that a macro can be passed, and the values that it can return, will depend on the context in which it is used. Macros can be specified in separate script files or defined within process templates, lifecycles, custom types, and custom applications.

script

A file that is written in the Python or BeanShell scripting language that contains one or more macros. BeanShell scripts have the .bsh extension; Python scripts have the .py extension.

journal

A special type of script file that can be created using the Scripting menu in EKM through the recording of user interface actions. Also referred to as a journal script or a journal file. This is a Python file with extension .jou.py.

Applications for Scripts in EKM

Some common applications for scripts in EKM are:


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