scripting-api
Tutorial
Building
API building a Simcenter Amesim circuit from scratch
In this tutorial, we will build an Simcenter Amesim circuit from scratch.
We will start by creating a new file named tutorial_step_2.py, containing the following lines:
Copy
AMEInitAPI(False)
AMECreateCircuit('FlatTwin')
AMECloseCircuit(True)
AMECloseAPI()
Note
Adding (True) to the AMECloseCircuit AMECloseCircuit line enables the circuit to be saved before it is closed. It would also be possible to insert AMESaveCircuit before AMECloseCircuit to achieve the same result in two steps.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Circuit_API/Circuit_API_Tutorial · retrieved 2026-07-17