Scripting

To launch the Script Editor, choose Script Editor from the File Menu dropdown menu.

Note: The Script Editor cannot be opened while History Tracking is on.

You can work with Discovery programmatically using Python. A built-in script editor allows you to create and run scripts to perform repetitive tasks.

Write your script in the main Script Window. You can also enter single commands in the command line.

For reference, API documentation is located in the Discovery installation directory: [local drive]\ANSYS Inc\[version]\Discovery\Discovery.Api.[version].