SetSubsystemName - MapleSim Help

# Online Help

###### All Products    Maple    MapleSim

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

SetSubsystemName

set the active MapleSim subsystem name

 Calling Sequence A := MapleSim:-LinkModel(); A:-SetSubsystemName(subsystemname)

Parameters

 subsystemname - string ; name of the subsystem

Returns

 • none

Description

 • A:-SetSubsystemName sets A's active subsystem.  An empty string ("") makes the entire model active.
 • The A := MapleSim:-LinkModel() statement needs to be run prior to successfully using any of the ModelObject A's export functions.

Notes

 • You can also set the active subsystem by using the MapleSim Model component.  For more information, see LinkModel.
 • If an active subsystem contains any multibody components, all of the model's multibody components are considered to be part of the active subsystem.

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

Setting the active subsystem to an RLC circuit subsystem:

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

Getting the active subsystem name:

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

 See Also

## Was this information helpful?

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