15.1. Configuring a Common Scripts Library

Engineering Knowledge Manager

Administration Guide | Chapter 15: Miscellaneous Tasks |

Chapter 15: Miscellaneous Tasks |  | 15.2. Gathering Usage Statistics
Prev |  | Next

## 15.1. Configuring a Common Scripts Library

You can build a script library that contains global scripts by placing the script in the /Administration/Configuration/Scripts folder.

Some sample scripts that make use of EKM's scripting interface are packaged in the `EKM_HOME/examples/conf/scripts` directory where the EKM server is installed. This folder is referenced by a built-in remote folder named `/Data/Shared Data/Sample Files`. You can place any or all of these scripts in the common /Administration/Configuration/Scripts folder for it to be globally available in all contexts.

Important: Scripts that are defined in the /Administration/Configuration/Scripts folder cannot access the global `ekm` variable that is used in EKM's scripting interface. Therefore, this variable will need to be passed as an argument if a script needs to use it.

The overall process for configuring a scripts library for a workspace is as follows:

- Start restricted workspace configuration mode if it has not already been started. See Starting Restricted Configuration.

- Upload the script to the /Administration/Configuration/Scripts folder or copy it from an existing location in the repository.

- Accept the workspace configuration. See Accepting the Configuration.

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.