GetSubsystemName - MapleSim Help

Online Help

All Products    Maple    MapleSim


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

GetSubsystemName

get the active MapleSim subsystem name

 

Calling Sequence

Returns

Description

Examples

Calling Sequence

A := MapleSim:-LinkModel();

A:-GetSubsystemName()

Returns

• 

string : name of the subsystem

Description

• 

A:-GetSubsystemName returns the name of A's active subsystem.  If no subsystem is active, an empty string ("") is returned.

• 

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 active subsystem name of the linked MapleSim model (you are at the top-level):

A:-GetSubsystemName

(1)

Setting the active subsystem to an RLC circuit subsystem:

A:-SetSubsystemNameRLC

A:-GetSubsystemName

RLC

(2)

See Also

MapleSim

MapleSim[LinkModel]

MapleSim[LinkModel][ListSubsystems]

MapleSim[LinkModel][SetSubsystemName]

 


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