- Index
- » Developer
- » OpenModelica development
- » OMEdit package saving
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.
- adeas
- 454 Posts
Re: OMEdit package saving
Yes. You will have that feature in this Fall (by the end of this year).
Adeel.
- adeas
- 454 Posts
- Index
- » Developer
- » OpenModelica development
- » OMEdit package saving