- Index
- » Developer
- » OpenModelica development
- » OMC API updateComponent problems with...
OMC API updateComponent problems with arrays
OMC API updateComponent problems with arrays
Hello everyone,
I am currently using the OMC API to set custom annotation to components. (See this post) It works fine for simple components, but when I try to modify the annotation of an array, the array dimensions disappear.
I have a parameter defined by
parameter Real v[3] = {0,1,2};
Here is a simplified version of the command I'm using :
updateComponent(v,Real,Test,annotate=__MyTag(name="<String>"))
and when I save the model the parameter is now defined by
parameter Real v = {0, 1, 2} annotation(__MyTag(name="<String>"));
Do you have any idea how to either change the annotation without stripping the component of it's dimensions or to add the dimensions back ?
Thanks a lot,
Alexandre
Re: OMC API updateComponent problems with arrays
What version of OM do you use? From what I can see this was fixed in r15501, almost two years ago.
- perost
- 114 Posts
Re: OMC API updateComponent problems with arrays
This is working fine with r23646.
For example try this
Adeel.
- adeas
- 454 Posts
- Index
- » Developer
- » OpenModelica development
- » OMC API updateComponent problems with...