Tutorial
Creating the system
API creating the system
The file shown previously will create a new system by calling the AMECreateCircuit
AMECreateCircuit
API AMECreateCircuit function. It then saves and closes it by calling the AMECloseCircuit function. You can check the details of these two functions using the help command in a Python Command Interpreter.
Execute the script. It creates an empty Simcenter Amesim file named FlatTwin.ame. You can open it in Simcenter Amesim:
Figure 7: The empty system in Simcenter Amesim
Note
You can change the working directory for your model using in the Python Command Interpreter as follows:
Copy
>>> import os
>> os.chdir('D:/AMETest')
The above example would change the working directory to ‘AMETest’ on the ‘D’ drive.
You can check your current working directory as follows:
Copy
>>> os.getcwd()
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Circuit_API/Creating_the_system · retrieved 2026-07-17