- Index
- » Developer
- » OpenModelica development
- » OMC API updateComponent limitation
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é
- Index
- » Developer
- » OpenModelica development
- » OMC API updateComponent limitation