get the name of the linked model
A := MapleSim:-LinkModel();
string : the name of the model to which the ModelObject is linked
A:-GetModel returns the name of the top-level model to which the ModelObject is linked.
If the ModelObject is linked to a model created in MapleSim, the name of the top-level model is usually "Main".
The A := MapleSim:-LinkModel() statement needs to be run prior to successfully using any of the ModelObject A's export functions.
Linking to a MapleSim model (located in .msim file):
A ≔ MapleSim:-LinkModel⁡'filename'=cat⁡kernelopts⁡'toolboxdir'=MapleSim,/data/examples/RLCcircuit.msim:
Warning, could not find application configuration /home/build/.MapleSim/2023/maplesimrc
Getting the linked MapleSim model name:
Download Help Document