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

Adding custom library to modelica?

Adding custom library to modelica?

I tried opening a file from a library, but I keep getting an error:

Failed to load package Banks () using MODELICAPATH C:\OpenModelica1.11.0-64bit\lib\omlibrary\OpenIPSL\Electrical\;C:/OpenModelica1.11.0-64bit/lib/omlibrary.

Re: Adding custom library to modelica?

What do you mean by

USER wrote:

opening a file from a library

If you want to load a custom library in OMEdit you'd typically use the File/Load Library command from the menu bar. This will allow you to brwose to the destination of your custom library to open the contained package.mo file or if the library is stored in one file, then open the <lib_name>.mo file. This way the working directory is not changed by the library will show up in the class browser in OMEdit.

Re: Adding custom library to modelica?

All libraries stored under the MODELICAPATH are found automatically.

In Dymola one can easily add its own search paths. Is there a similar way for OMC to extend the search path?

Re: Adding custom library to modelica?

Env.variable OPENMODELICALIBRARY can be used

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