How to add load libraries, change directory, etc. on startup?

后端 未结 5 1850
遥遥无期
遥遥无期 2020-12-21 17:53

Is there a way to automatically load libraries, change to a certain working directory, etc. when launching Dymola?

5条回答
  •  时光取名叫无心
    2020-12-21 18:26

    Another suggestion where you don't need to hardcode your package into an environment variable of your operating system (and maybe more safe for inexperienced programmers):

    1. Go to the folder where Dymola is installed (e.g. C:\Program Files\Dymola 2020).
    2. Search for the Dymola.mos file in the insert-folder. 'insert' folder
    3. Open the script (e.g., in notepad++)
    4. Add the link(s) to your Dymola-library-package.mo file(s) here with the openModel statement e.g., openModel("C:/IDEAS/package.mo"); Dymola.mos script
    5. Save the script. Now, every time you open Dymola, your libraries will be loaded automatically.

提交回复
热议问题