About Python Interface

The Python interface is an application programming interface (API) for executing commands in Dymola Behavior Modeling using a Python program. It contains a number of functions for performing operations such as simulating, specifying variables, plotting, and exporting data.

Note: Before using the API, you need to install and configure a supported version of the Python programming language. Virtual Execution Interface officially supports the 32-bit version of Python 2.7 and Dymola Interface supports 32-bit and 64-bit versions of Python 2.7 and Python 3.5. For more information, see Installing Python Interface.

The Python package is included in the Dymola Behavior Modeling distribution. The package provides an API, based on an interface server that uses the HTTP protocol. The server runs in Dymola Behavior Modeling and receives function calls. The functions available through the Python interface are the functions available in the DymolaCommands library. For more information, see Launching HTTP Server.

This page discusses:

See Also
About Interfacing Other Simulation Environments