Please enable Javascript to view this site.

GENIUS TOOLS Model Processor

Navigation: List of all tasks > Environment

Start Python Script

Scroll Prev Top Next More

This task starts a Python script.

The cross-task settings can be found in the chapter General task settings.

Model filter

This task can revise the following models: Parts, Assemblies and Drawings

The task-specific settings are:

mp_Task_StartPythonScript

1.Script

Enter your own script. To search the text box, right-click to open the context menu and click Search. Alternatively, you can use the keyboard shortcut Ctrl + F.

2.Arguments

–Overwrite the executable Python interpreter: Check the box to activate this option.

–You can enter arguments in the text field that are passed to the script.

Please note: User variables must be specified under Arguments (2).

3.Save results to user variables

Enter the names of the user variables that you want to fill.

–Out (Default Off)

–Err (Default Error)

–Ret (Return code): If the script was executed without errors, 0 is returned. All values other than 0 are an error.

Please note: Special case: If the same variable is entered for standard output and standard error, the values are applied asynchronously. The result is that the output and error are displayed in the console in the same format, i.e. either a standard output or an error is displayed.

4.Run in Background

If this option is enabled, the script will be launched in a separate process that runs in the background.

5.Wait Time (s)

Specify how many seconds the script should wait before it is executed in the background.

Tip: You can use Variables.

Created with Help & Manual 8 and styled with Premium Pack Version 4 © by EC Software