AmesimKnowledge

The Simulation Scripting environment in detail > Export setup

Saving and Exporting Configurations

The Export setup API is an independent module, which uses files in a model (which are generated by Simcenter Amesim) to manipulate an export setup configuration. Sharing of information between the Export API and Simcenter Amesim is only performed through files. A license is not required to use the Export Setup APIs. Unlike the Simcenter Amesim circuit API, it does not use extra Simcenter Amesim licenses to run.

Saving the Export configuration

In order to save modifications made to an export configuration, you can use the API named save:

Copy

import ame_export_apy
    xpt_config = ame_export_apy.XPT.get_config(r"$AME\demo\Platform\
    OptimizationRobustnessDOE\Optimization\DesignOptimization.ame")
    seat_param = xpt_config.get_param(‘seatD’)
    seat_param.set_property(Property.Export_Name, ‘new_seatD’)
    xpt_config.save()
    # return True or False

Warning

You can still access the Study API even if the script imports ame_export_apy.py using the two following methods:

  1. Create the ExportConfig.settings file at the same location as the script. If this file contains the text use_study_param_file, then the Study API is called instead of the Export API even on importing ame_export_apy.py.

  2. To access the Study API [study_param file] , you can initialize XPT = use_study_param_file(true) at the beginning of the script. Example: Copy`import sys from ame_export_apy import * try: XPT = use_study_param_file(true) xpt_config= XPT.get_config(r'D:\SourceCode_newcheckouts
    Projects\BatchDOE\TestReport
    New TestReport Data\ExportSettings_Scripts
    Engine_DID_Turbocharged.ame')

#here are the input parameters print ("Study Input Parameters :: starts") for cur_param in xpt_config.get_params_list(IOType.Input): print ("Param name:", cur_param.get_property(Property.Export_Name))`

Opening the Export configuration in Simcenter Amesim

You can open the Export Configuration in Simcenter Amesim.

Figure 6: Export Parameters Setup dialog box

In order to export to an external tool you can also specify the XptFormat enum. It can have one of the following values:

  • Default

  • OPTIMUS

  • iSIGHT

Copy

import ame_export_apy
    xpt_config = ame_export_apy.XPT.get_config(r"$AME\demo\Platform\
    OptimizationRobustnessDOE\
    Optimization\DesignOptimization.ame")xpt_config.save(XptFormat.iSIGHT)

Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Scripting/xid1124526 · retrieved 2026-07-17