12.3. Creating a Custom Application

Engineering Knowledge Manager

Administration Guide | Chapter 12: Defining Custom Dialogs, Wizards and Applications |

12.2. Defining and Using Custom Applications |  | 12.4. Executing a Custom Application
Prev |  | Next

## 12.3. Creating a Custom Application

Sample files will be used to demonstrate how a new custom application is created in EKM. The script file is named mixing-tank-simulation.py and the resource archive is named mixing-tank-simulation.zip. You will need to download these files to your local computer. They are located in the following folder: EKM_HOME/Sample Files/custom-apps.

Note that the Custom Application action is only available to `admin` users.

To create a custom application:

1. Go to Home/My Applications or Administration/Shared Applications and select (New) > Custom Application.

   This will open the Create Custom Application dialog box.

   Figure 12.4: Creating a Custom Application

2. In the Application name edit box, type `Mixing Tank Simulation`.

3. Click under Application folder to select the repository folder where you would like to save the application. For easy access you may want to save it in the `/Home/My Applications` folder or the `/Administration/Shared Applications` folder.

4. Click under Script file to select a script file for the application. Select the sample mixing-tank-simulation.py file on your local system. This is the script file that provides the back-end of the application.

5. In the Macro name for dialog creation edit box, enter `init` for the macro name that creates the custom dialog box. This is the name of the macro that is defined in the script file.

6. Click under Resource archive to select the archive file (.zip, .tar or .tar.gz) that contains the user interface resources needed to define the front-end user interface. Select the mixing-tank-simulation.zip archive file on your local system.

7. Since the application in this example will be a standalone application that can run independently, leave the Embedded check box deselected. Embedded applications are associated with processes, and can only be launched from a process. Standalone applications will appear on the Application launcher, while embedded applications will not (see Executing a Custom Application).

8. Click OK. The application named `Mixing Tank Simulation` of type `EKM Application` will be created and added to the repository folder that you specified.

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.