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

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:

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.

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 ? )

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.

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