Skip to Content
PagesOlpUpload a program

Upload a program

With the Upload program command, existing programs can be uploaded to the current project.

When the command is started, a standard file browser opens to search for and select the wanted program for the upload. Then the upload continues and the program(s) is imported.

But in case a program does exist already, the Program upload window appears.

The panel returns with a list of all main and subprograms that are part of the upload action and that already exist in the project under the same name. For each of them it has to be decided how the import should be executed.

Do not uploadThe program item will be ignored and thus not imported during the upload.
Overwrite programA program exists already with the same name. That program will be overwritten with the uploaded version.
Create a new programA program exists already under the same name. A new program will be generated from the uploaded version. Its name remains the same, extended with a sequential number.

For convenience, the command at the top left side of the panel is there to set the global upload action for all programs in the list with one single click.

In the drop down selector, the required global action can be specified. But obviously, individual actions still are possible to set.

Once the upload actions have been defined, the actual upload has to be initiated with the Execution button at the top right side in the panel.

For customization purpose it is possible to run a python script before the actual upload is being executed and after it has been finished.

This dedicated scripts are located in the plugin folder <plugin>\Technologies&lt;technology name>&lt;manufacturer or Standard>\AuxiliaryCommands\AutoExecute. This can be the default installation plugin or any other configured plugin folder.

The script to run before is named (mandatory) PrevProgramUpload.py.

The script to run after is named PostProgramUpload.py.

To run it in the Onsite Editor workbench they are named PrevProgramUploadOnsite.py and PostProgramUploadOnsite.py.

Was this page helpful?