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

OMEdit package saving

OMEdit package saving

Hello, OM developers. I have a question to discuss.

There are 2 ways to create package with some models. 1st is to create file somepackage.mo with such structure:

Code:


somepackage.mo:
    package somepackage
        model somemodel
        end somemodel;
    end somepackage;

In this variant OMEdit saves package and model correctly.

The other way is to create a folder somepackagefolder and then create a number of files in it:

Code:

package.mo :

    package somepackage
    end somepackage;

somemodel.mo :
    model somemodel
    end somemodel;

usually 2nd variant is used to create a library, but it's also useful for developing complex models.

Nowadays OMEdit doesn't support saveing 2nd variant packages.

I open package.mo (it opens correctly), edit model, and save it. OMEdit places all code from model(models) in package.mo but doesnt saves changes neigther in package file nor in model files.

Re: OMEdit package saving

Yes the 2nd variant is not supported now. OMEdit can read packages with directory structures but can't save them. Only save option available right now is to save in a single file.

Adeel.

Re: OMEdit package saving

Are u planning to support packages  saving  with directory structure?

Re: OMEdit package saving

Yes. You will have that feature in this Fall (by the end of this year).

Adeel.

There are 0 guests and 0 other users also viewing this topic
You are here: