How do I make my library appear in the libraries menu

March 7th, 2011 by Garron Fish

To get your library to appear in the Dymola Libraries menu you first need to make sure that your library is saved using the directories method rather than as a single Modelica file.  See here for more information.

Create a directory called script inside your library directory and within the script directory, create a text file called libraryinfo.mos. Edit this file using a text editor and add the LibraryInfoMenuCommand.  An example of how to use this command is below:

LibraryInfoMenuCommand(category="libraries",
  text="Hydraulics",
  reference="HyLib ",
  isModel=true,
  description="Hydraulics library",
  version="2.2.36",
  ModelicaVersion=">= 2"
  pos=102);

 

The arguments in this command have the following meaning:

For more detailed information refer to Section 6.1.5 in Dymola User Manual Volume 1.

This was written using Dymola 2016 FD01.

Please note that for this to work the library must either be in the <Dymola>\Modelica\Library directory or within a directory specified in the MODELICAPATH environmental variable.

Archives

2017

2016

2015

2013

2012

2011

2010