Open tbeu opened 7 years ago
The source of this exception is in the definition of the Text annotation.
Currently we support the new Text definition only. As a result, it is not possible to use lineColor
.
This property is inherited from FilledShape
and this inheritance is deprecated according to Modelica Language Specification V 3.3. Using textColor
instead fixes the exception. (The exception is totally misleading.)
There are some other bugs too:
\n
isn't rendered as a line break{-450,450},{450,-450}
I have no time to fix this at the moment, sorry.
Thanks for looking into it. I even learned that lineColor
is deprecated in favour of textColor
.
The Modelica text from https://github.com/modelica/Modelica_DeviceDrivers/issues/186#issuecomment-273717595 saved as A.mo cannot be opened in v0.7 and gives