IMPORTANT:
- Once a script is in the favorites, the script will be registered as an "Action" at the next start of PCB-Investigator. The script will then be available in the "Customize Ribbon" area and can be placed as a button anywhere in the menu.
The only requirement for this is, that the script as an unique GUID in the script's Header, like all our web scripts have. Example:
// GUID MyUniqueScriptGUID_123456
// ButtonEnabled=5 (Button enabled if: 1=Design is loaded, 2=Always, 4=Design contains components, 8=Loaded step is a panel, 16=Element is selected, 32=Component is selected)
The "ButtonEnabled" value gives you the possibility to define the condition for the enable-state of the button. E.g. if your script needes a design to be openend, and a component to be selected, the correct value would be 1+4+32=37. If the script only works when components exist but nothing has to be selected, the value is 1+4=5.
- By entering // AutoStart=true/false you have the possibility to execute scripts automatically with the start of PCB-Investigator. This makes most sense for asynchronous scripts. However, by default these scripts will automatically terminate when a design is closed. To prevent this, the class in the script must not only be assigned the interface "IPCBIScriptASync", but also the interface "IPCBIScriptDontAutoStop".
Common options:

Starts running the script. Starting the script will automatically compile the code first. You can either start running using the right click on a script and clicking "Run" or just by clicking the green start button at the top of the dialog.

Stops running the dialog by clicking the red square button.

With this button, you can compile your code. Compile errors will be shown in the list at the bottom of the window.