GetModelica
get the Modelica description of the MapleSim model
Calling Sequence
Parameters
Returns
Options
Description
Notes
Examples
A := MapleSim:-LinkModel();
A:-GetModelica(options)
options
-
(optional) equation(s) of the form name = value
string : Modelica description of the model or active subsystem
flat: true or false
Specifies whether to return the flatten record of the active subsystem. Default is false.
core: true or false
If set to true the returned Modelica represents the core Modelica that describes the behavior of the model: all annotations including the experiment settings are removed; the timestamp when the Modelica was generated is not added; if any attachments are used in the model only their filenames are specified. Default is false. If the model to which the ModelObject is linked is a Modelica file (the LinkModel command was called with the modelica option) GetModelica returns the Modelica string provided in the file regardless of the setting of the core option.
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.
The returned Modelica has MapleSim specific annotations in it and may not display correctly in other tools.
Linking to a MapleSim model (located in .msim file):
Getting the Modelica description of the model:
Getting the core Modelica description of the model:
See Also
MapleSim
MapleSim[LinkModel]
Download Help Document