The Circuit API
Getting started
Procedure
- Start the Python command interpreter. In Simcenter Amesim, use Tools > Python command interpreter Python Command Interpreter .
Figure 1: Starting the Python command interpreter
- Check the circuit API version. Type AMEGetAPIVersion() AMEGetAPIVersion
Figure 2: Getting the API Version
- Initialize the API.
Now we need to initialize the circuit API, by calling the AMEInitAPI
AMEInitAPI
command. It is necessary to initialize the API before using API functions (except for functions that simply return information, such as AMEGetAPIVersion). Otherwise, you will get error messages.
Type AMEInitAPI(). Figure 3: Initializing the API
Results
Note that we use the optional boolean argument False, which indicates that we do not want to index the submodels in the path list. Please consult the Circuit API Reference Manual for details about this argument.
Note
Calling AMEInitAPI checks out one Simcenter Amesim license token. The license is released after you call AMECloseAPI AMECloseAPI .
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Circuit_API/Getting_started · retrieved 2026-07-17