GetModel - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


GetModel

get the name of the linked model

 

Calling Sequence

Returns

Description

Examples

Calling Sequence

A := MapleSim:-LinkModel();

A:-GetModel()

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):

AMapleSim:-LinkModelfilename=catkerneloptstoolboxdir=MapleSim,/data/examples/RLCcircuit.msim:

Getting the linked MapleSim model name:

A:-GetModel

Main

(1)

See Also

MapleSim

MapleSim[LinkModel]

MapleSim[LinkModel][SetModel]