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

OMC API updateComponent limitation

OMC API updateComponent limitation

Hello,

I am using the OMC API to create Modelica code but I am having problems adding annotations that have more than one element.
For example, if I use the updateComponent function like this:

     updateComponent(X,Y,Z, annotate=(Dialog(a=2)))

then I will see in the code the following addition to the component: annotation(Dialog(a=2))

However, if I try:

updateComponent(X,Y,Z, annotate=(Dialog(a=2), TEST(a=3)))

then no annotation is added.

Any suggestion as to what the correct syntax is? of another way to update the annotation properly?

Kind regards

Chahé

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