Search code examples
updatesmodelicadymola

Dymola conversion script, run script manually


I have a library without annotation (uses(Modelica(version="X.Y.Z"))); in the top level package.mo file. Can I manually execute the conversion script to update my library? And where is it located? I am using Dymola.


Solution

  • Conversion scripts are usually located in the Resources folder of a library.

    E.g. for the MSL 3.2.3 shipped wit Dymola 2020x, you can find them here:

    C:\Program Files\Dymola 2020x\Modelica\Library\Modelica 3.2.3\Resources\Scripts\Dymola
    

    To manually apply a conversion:

    1. Open a fresh Dymola window
    2. Run the conversion script
      • via the GUI with Run Script in the Simulation tab
      • or from the command line with RunScript("path/to/conversion.mos")
    3. Open the library to convert
    4. Dymola will directly apply the conversions and you will not see the usual conversion dialog. Check the log window to see what was converted.