- Index
- » Users
- » asimoneau
- » Profile
Posts
Posts
Thank you ! It works. I don't know what I've been doing wrong but at least now I know how I should have been doing it.
Have a nice day,
Alexandre
I am using 1.8.0 but I tried 1.9.1 and it doesn't seem to have helped.
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
- Index
- » Users
- » asimoneau
- » Profile