SetSubsystemName - MapleSim Help

Online Help

All Products    Maple    MapleSim


SetSubsystemName

set the active MapleSim subsystem name

 

Calling Sequence

Parameters

Returns

Description

Notes

Examples

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

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

Setting the active subsystem to an RLC circuit subsystem:

A:-SetSubsystemNameRLC

Getting the active subsystem name:

A:-GetSubsystemName

RLC

(1)

See Also

MapleSim

MapleSim[LinkModel]

MapleSim[LinkModel][GetSubsystemName]

MapleSim[LinkModel][ListSubsystems]