GetModel - MapleSim Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MapleSim : MapleSim Application Programming Interface : API Commands : MapleSim/LinkModel/GetModel

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:-LinkModel'filename'=catkernelopts'toolboxdir'=MapleSim,/data/examples/RLCcircuit.msim:

Getting the linked MapleSim model name:

A:-GetModel

Main

(1)

See Also

MapleSim

MapleSim[LinkModel]

MapleSim[LinkModel][SetModel]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam