ListSubsystems

list subsystems defined in the linked model

Parameters

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

Returns

 • list of strings : list of subsystem names

Options

 • localonly : true or false
 Specifies whether to return subsystems that are defined only locally in the model. If localonly = false then the names of all submodels are also returned. Default is true.

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

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

Listing subsystems defined in the model:

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

Listing all subsystems in the model:

 > $A:-\mathrm{ListSubsystems}\left('\mathrm{localonly}'=\mathrm{false}\right)$
 $\left[{"S1"}{,}{"RLC"}{,}{"RLC.C1"}{,}{"RLC.G2"}{,}{"RLC.R1"}{,}{"RLC.I1"}{,}{"RLC.SC1"}{,}{"RLC.PS1"}\right]$ (2)