OpenModelica


Forgot password? | Forgot username? | Register

own components : class not found in scope

own components : class not found in scope

Hi,

I try to make a model including own components.

This works well until i close openmodica and reopen it. The components are not found anymore and i have an error 'class (my component)  not found in scope (my model)'

In the schematics the component appears as a red box with cross :

https://openmodelica.org/images/agorapro/attachments/4161/mini_not-found.PNG

How can i specify the location of my components so that the model find them once saved en reopened ?

Thanks
Greg

Attachments:
Administrator has disabled public posting. Please login or register in order to proceed.

Re: own components : class not found in scope

When you reopen then you should first load the dependent models and then open the diagram view.
Its a known bug in OMEdit that it fails to update the component if dependent models are loaded later on.

Adeel.

Administrator has disabled public posting. Please login or register in order to proceed.

Re: own components : class not found in scope

Thanks. It works well in this order.

Is there a way to script the loading of multiple components in good order ? ( With OMShell perhaps ? )

Administrator has disabled public posting. Please login or register in order to proceed.

Re: own components : class not found in scope

No. It should work in any order. It is a bug (https://trac.openmodelica.org/OpenModelica/ticket/2393) which I have to fix current/smile.

Adeel.

Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests and 0 other users also viewing this topic
You are here: