Opened 7 years ago

Last modified 4 years ago

#4586 new enhancement

enhancement: show class diagram in OMEdit

Reported by: Matthis Thorade <m.thorade@…> Owned by: Adeel Asghar
Priority: high Milestone: Future
Component: OMEdit Version:
Keywords: Cc:

Description

Basically a duplicate of this SO question:
https://stackoverflow.com/questions/20607206/modelica-class-diagrams

When reading code with many levels of inheritance, it would be very helpful to see a class diagram, so that it is immediately clear what parameters, variables etc were added where.

Is such a functionality available already? Maybe using some script?
It would be nice to be able to just see such a diagram with a single click from OMEdit.

Change History (3)

comment:1 by Matthis Thorade <m.thorade@…>, 7 years ago

In a second step, the diagram could be interactive, e.g. allow to navigate to a class or similar.

comment:2 by Francesco Casella, 7 years ago

I very strongly support this.

For some reason, this feature was never implemented in Dymola, though I think it would be extremely valuable to improve the understaning of libraries that use inheritance heavily, such as Modelica.Media and Modelica.Fluid.

comment:3 by Jack, 4 years ago

Another related SO question:
https://stackoverflow.com/questions/62118653/how-to-show-the-hierarchy-of-a-modelica-library

Answer by Dag B showing an example based on GraphViz

Note: See TracTickets for help on using tickets.