AmesimKnowledge

Hybrid Co-simulation with the usercosim interface > API Documentation

Shared library management

int loadamesimdll (char * libname, AME_DLL * amedll)
Loads Simcenter Amesim model shared library: Makes functions from the shared library available through an AME_DLL structure. AME_DLL structure itself is not allocated in this function.
Parameters libname path to the shared library to load. amedll pointer to the AME_DLL structure.
See also unloadamesimdll()
Returns 1 on success, 0 if an error occurred.
int unloadamesimdll (AME_DLL * amedll)
Unloads dll loaded with loadamesimdll(). The pointer referred to by amedll is not freed with this function.
Parameters amedll pointer to the AME_DLL structure.
See also loadamesimdll()
Returns 1 on success, 0 if an error occurred.

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