By: Romain Gillot – Project Engineer
Developing a model
- Improved documentation
Cascading style sheets can now be used to configure the documentation of the packages: there was only limited support for this in the previous versions of Dymola.
A default style sheet style1.css can be found in the insert folder in the Dymola distribution/installation directory. Since all the tags are listed in it, it can be used as a reference and modified to reflect your own brand. The file has to be located in the Resources folder of your library and it will be used throughout the whole library.
Figure 1: Default style sheet for package documentation
- Managing Modelica path setting from Dymola GUI
The Modelica path is a list of directories where packages or models can be searched for (when opening a library or a model). In the previous versions of Dymola, we had to go in the control panel and use the Environment Variables to set the Modelica path. It is now possible to set it directly in Dymola using the command File > Modelica Path…
This command opens a dialog box which allows the user to modify, add or delete directories.
Figure 2: Dialog box to set the Modelica path in Dymola
In the dialog box are already listed the current directories except the default one (dymola/Modelica/Library). An Edit button (in red in the picture above) allows to browse for directories.
To remember the Modelica path when closing the session, go to Edit > Options… In the Save Settings tab tick Modelica path and click Save.
- Minor improvements
Flipped images in diagrams and icons
The images inserted in diagrams and icons using Bitmaps () can now be flipped using the Edit menu.
Existing libraries can be updated using the command updateModelicaAnnotations(“LibraryName”). LibraryName is the name of the library to be updated. The library must be loaded before giving this command. All the libraries delivered in Dymola 2016 FD01 are updated by this command.
Easier opening of several libraries using a tear-off menu
In the menu File > Libraries there is a dotted line at the top which if clicked detaches the menu as a separate window.
Figure 3: Tear-off window to open several libraries
It is then possible to open several libraries without having to re-open the menu.
Saving the current directory as a start-up directory
The current working directory can be saved by clicking on Edit > Options… In the Save Settings tab, tick the option Start-up directory and click Save.