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

annotation

annotation

hi,
Please is what you can tell me (with a small example) the keyword annotation;
or if you povez explain this example: annotation(Icon(graphics = {Rectangle(extent = {{-60,62},{58,-44}}, lineColor = {0,0,255}, fillColor = {255,0,0}, fillPattern = FillPattern.Solid)}));
Thank you very much.

Re: annotation

well, an annotation is just the graphical information of a model, for the simulation it isn't really necessary, Here the model obviously has a rectangle as an icon, the numbers {-60,62},{58,-44} are the coordinates of the corner points. the other stuff are color information of the lines and the filling of the rectangle and also about the Pattern of the solid. Don't think to complicated current/wink

There are 0 guests and 0 other users also viewing this topic