GetSubsystemName - MapleSim Help

GetSubsystemName

get the active MapleSim subsystem name

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

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

Getting the active subsystem name of the linked MapleSim model (you are at the top-level):

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

Setting the active subsystem to an RLC circuit subsystem:

 > $A:-\mathrm{SetSubsystemName}\left("RLC"\right)$
 > $A:-\mathrm{GetSubsystemName}\left(\right)$
 ${"RLC"}$ (2)