Tutorial > Creating supercomponents
Handling global parameters
When you create supercomponents containing global parameters, three options are available (as with supercomponent creation in the Simcenter Amesim GUI).
Figure 19: Global Parameters prompt in Simcenter Amesim GUI
This is handled by the fifth parameter, gp_action:
AMECreateSupercomponent( (‘mass1port’,), ‘sc_name’, ‘sc_alias’,‘sc_icon_name’, ‘duplicate’)If you select this option, the global parameters are attached to the supercomponent and become supercomponent-level parameters. This is equivalent to Create supercomponent parameters.AMECreateSupercomponent( (‘mass1port’,), ‘sc_name’, ‘sc_alias’,‘sc_icon_name’, ‘keep’)If you select this option, the references to the global parameters are retained. This is equivalent to Keep references.AMECreateSupercomponent( (‘mass1port’,), ‘sc_name’, ‘sc_alias’, ‘sc_icon_name’, ‘replace’)If you select this option, the parameters referencing global parameters are set to the values defined by those global parameters (in effect, the global parameter reference is removed). This is equivalent to Replace with values.
Note
The default option is duplicate.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Circuit_API/xid1124866 · retrieved 2026-07-17