OpenModelica / OpenModelica

OpenModelica is an open-source Modelica-based modeling and simulation environment intended for industrial and academic usage.
https://openmodelica.org
Other
851 stars 307 forks source link

OMEdit fails to update relative class names to absolute ones upon duplicate #4536

Open OpenModelica-TracImporter opened 4 years ago

dietmarw commented 2 years ago

Just hit this problem again when preparing a workshop for new beginners. Is there any workaround other than having to manually update the class names in the duplicated model? @christiankral Any experience with this?

christiankral commented 2 years ago

In the open source libraries provided on one of my GitHub repositories I replaced all relative class names in then examples by absolute class names. I have unfortunately no better option up to now.

Apparently the new front end seems to provide some new opportunities, see https://trac.openmodelica.org/OpenModelica/ticket/4536#comment:3

@casella I very much agree with @dietmarw that this issue is relevant for beginners. Moreover, if not familiar to (Modelica and) OpenModelica, some potential user might loose their interest, if a simple copy of a Modelica class "fails" due the missing capability of converting relative to absolute instance names.

casella commented 2 years ago

@christiankral I absolutely agree. This thing will be top priority once that #8425 and related issues will be solved.