2.1  Introduction

In this section you will learn how to edit a script, run it and debug it.  You will also see how to turn the script into a function that you can call directly from the menu bar of OneLiner or Power Flow.

We will use OneLiner as the executable program in this tutorial. The same steps can be used in the Power Flow Program.

The example script is a very simple per-unit calculator. The script will use the system MVA of the currently open network as the base MVA. It will also set the base kV to the nominal kV of the currently selected object on the one-line diagram.  The kV base is set to zero if nothing is selected.