list subsystems defined in the linked model - MapleSim Help

Online Help

All Products    Maple    MapleSim


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

ListSubsystems - list subsystems defined in the linked model

Calling Sequence

A := MapleSim:-LinkModel();

A:-ListSubsystems(options)

Parameters

options

-

(optional) equation(s) of the form name = value

Returns

• 

list of strings : list of subsystem names

Description

• 

A:-ListSubsystems returns the names of the subsystems defined in the linked model.

• 

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

Listing subsystems defined in the model:

A:-ListSubsystems

RLC

(1)

Listing all subsystems in the model:

A:-ListSubsystems'localonly'=false

S1,RLC,RLC.C1,RLC.G2,RLC.R1,RLC.I1,RLC.SC1,RLC.PS1

(2)

See Also

MapleSim, MapleSim[LinkModel], MapleSim[LinkModel][GetSubsystemName], 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