Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Best practise for saving models?

Best practise for saving models?

If I use OMEdit to create a new model by going:

File-->New Modelica Class-->'Insert Name' with default Specialisation set to Model-->OK

and create a model, say a DC motor, as in the tutorial video, and I save the model. Then I am unable to open the model again later.

When I try to open the model I get the error message:

---------
Error has occured while loading the file/library
Path to file
Unable to load the file/library

Redefining class(es) 'filename' which already exist(s). Delete the
existing class(es) before loading the file/library
Path  to file
---------

This error message seems like it must be very clear but I am completely new to Modelica and have no idea what it means.

I will be very greatful if any one can assist me.

Regards
Michael

Edited by: Mich_K - Sep-21-15 19:30:11

Re: Best practise for saving models?

You are getting the message that class is already loaded so you can't open/load it again.
If you want to load it then first Unload/Delete the class.

Btw, if you have created the model and is already opened then why you want to open it again?

Adeel.

Re: Best practise for saving models?

Ah, thank you.

I did not realize that OMEdit automatically opens the model you create.

Thanks.

Re: Best practise for saving models?

Solved:)

Edited by: RG - Nov-12-20 08:46:48
There are 0 guests and 0 other users also viewing this topic
You are here: