GetModel - MapleSim Help

GetModel

get the name of the linked model

Returns

 • string : the name of the model to which the ModelObject is linked

Description

 • 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.

Examples

Linking to a MapleSim model (located in .msim file):

 > $A≔\mathrm{MapleSim}:-\mathrm{LinkModel}\left('\mathrm{filename}'=\mathrm{cat}\left(\mathrm{kernelopts}\left('\mathrm{toolboxdir}'=\mathrm{MapleSim}\right),"/data/examples/RLCcircuit.msim"\right)\right):$

 > $A:-\mathrm{GetModel}\left(\right)$
 ${"Main"}$ (1)