Exporting Modelica Text As
Use Export ModelName Text As to save and export the code present in the editor.
Note:
To compile Modelica text or import (.mo file) which is dependent on another library, specify the file path as MODELICAPATH environment variable (file path up to the folder containing the library).
Use a semicolon (;) to append multiple libraries in MODELICAPATH .