User manual
8
3.2 Developing a model
3.2.1 Extendable user interface
Defining content of menus and toolbars
It is possible to extend the graphical user interface of Dymola by introducing own menus
and toolbars from which Modelica functions can be called.
The following picture shows a new menu
My Functions. It contains a sub-menu My Matrix
Functions
and two menu items sin and cos.
When selecting
My Functions > My Matrix Functions > eigen values, the dialog of the
Modelica.Math.Matrices.eigenValues function is shown:
Note that the dialog now also contains entries to fill in output variables, i.e. in what
variables of the scripting environment to store the results. If none of the output variable
entries are filled-in, the results are output in the scripting window.
The definitions of menus and toolbars are done by defining a package structure with short
extends definitions to the functions to be called.