Info script

In the explorer of projects, user can show informations about the model and/or the results of a study via a special python script :

Image

This script do not use Python Virtual Environment and is so very fast.

1. Script definition

From Home/Python, click on button 6 (Add simple script) :

Image

Give it a name.

A new main.py will be created in the file explorer and Inputs and Outputs nodes in the Project script. Requirements.txt is hidden and the Editor is empty :

Image

In the Editor, you have access to the object study that exposes some functions. A dropdown menu will appear after writing :

study.

Image

The main usefull functions are getMetal(), getSolution() and showInformation()

See the description of the object study

2. Example

See an example here : Show informations about a study.