get the Modelica description of the active MapleSim subsystem - MapleSim Help

GetModelica - get the Modelica description of the active MapleSim subsystem

Parameters

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

Returns

 • string : Modelica description of the model or active subsystem

Description

 • A:-GetModelica returns the Modelica description of the entire model.
 • The A := MapleSim:-LinkModel() statement needs to be run prior to successfully using any of the ModelObject A's export functions.

Notes

 • The returned Modelica has MapleSim specific annotations in it and may not display correctly in other tools.

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

Setting the active subsystem an RLC circuit subsystem:

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

Getting the Modelica description of the active subsystem:

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