GetModel
get the name of the linked model
Calling Sequence
Returns
Description
Examples
A := MapleSim:-LinkModel();
A:-GetModel()
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:
Getting the linked MapleSim model name:
A:-GetModel⁡
Main
See Also
MapleSim
MapleSim[LinkModel]
MapleSim[LinkModel][SetModel]
Download Help Document