How to design the icon of a Modelica component?

Viewed 440

Is there any software that allows designing the icon of a Modelica component, and then copy into Dymola? It is hard to draw the picture in Dymola.

enter image description here

A short summary of the answers, there is 4 software support this task:

  1. OMEdit;
  2. MoVE;
  3. InkSpace;
  4. PowerPoint;
4 Answers

Yes, there is MoVE, but it seems development is stopped.

For some tasks OMEdit is better. Properties of graphical elements are nicely presented in a single dialog and you can easily edit the points of lines and polygons.

enter image description here

As an alternative you can use svg and png files, which can be nicely drawn with Inkscape.

Another option for creating icons and info-graphics is to make them in standard packages for drawing, save them in a proper format (e.g., .png) and then use them. This is what I do with my library.

One way I have done it is with powerpoint and wrote a macro that auto-names them: https://github.com/ORNL-Modelica/TRANSFORM-Library/blob/master/TRANSFORM/Resources/Images/Icons.pptm

Next to that is another one for info slides.

Another one worth a go is something like Inkscape (https://inkscape.org/) and then you can run a command line terminal to loop through them all and generate png/jpgs.

The following platform-independent method, i.e. works with arbitrary Modelica simulation environments, is particularly useful for sophisticated icons:

  1. Use LibreOffice Draw for drawing an Icon
  2. For each drawing, produce an image file in one of the desired format according to quality requirements
  3. Include the image file within standard annotation for icons

Here is an example from the library GenKinetics:

  1. An Icon draw in *.gif format: Inhibition Icon
  2. A component employing the Icon: Port_I.mo
Related