OpenModelica icon indicating copy to clipboard operation
OpenModelica copied to clipboard

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

Open OpenModelica-TracImporter opened this issue 5 years ago • 3 comments

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?

dietmarw avatar Sep 09 '22 12:09 dietmarw

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.

christiankral avatar Oct 16 '22 21:10 christiankral

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

casella avatar Oct 19 '22 19:10 casella

@dietmarw, @christiankral, a fully functional Duplicate feature was added in 1.23.0. This issue should be resolved. If not, please reopen.

casella avatar Apr 03 '25 15:04 casella