User manual
24
exportEquations
exportEquations(path)
Export the equations to file. Supported file formats are PNG and MathML. The file format is
determined by the file extension. Use mml as file extension for MathML.
exportIcon
exportIcon(path, width=80, height=80, trim=true)
Export the icon layer to a file. Supported file formats are PNG and SVG. The file format is
determined by the file extension. To export in SVG, the icon layer must exist.
getClassText
getClassText(fullName, includeAnnotations=false,
formatted=false, classText)
Return the Modelica Text (as a string classText) for a given model, and also if the model
is read-only (the output
readOnly=true if so). fullName is the name of the model, for
example
"Modelica.Mechanics.Rotational.Components.Clutch".
includeAnnotations specify if annotations should be included, formatted if the text
should be returned as HTML (
formatted=true) or as plain text.
getExperiment
getExperiment()
Get the current experiment (simulation) setting. Outputs from this command are
StartTime, StopTime, NumberOfIntervals, OutputInterval, Algorithm,
Tolerance, and FixedStepSize.
setClassText
setClassText(parentName, fullText)
Set the Modelica text for an existing or new class. parentName is the package in which to
add a class,
fullText is the Modelica text to add. If the class specified by parentName
does not exist, it is created. If
parentName is an empty string, a top level class is created.
signalOperatorValue
signalOperatorValue(variablePath, SignalOperator, startTime=-
1e100, stopTime=1e100)
The command signalOperatorValue returns the value of a signal operator for a given
variable. An example of a call:
signalOperatorValue("J1.w", SignalOperator.ArithmeticMean);
The following signal operators are presently supported:
Signal operators:
SignalOperator.Min