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

Use of constants in graphical annotations

Use of constants in graphical annotations

Hello!

DynamicSelect does not allow the usage of references to variables/constants in the first argument (editing state). So, is there any way to use an Integer[3]-constant as RGB-triple in graphical annotations to modify the editing state of a graphical symbol? That would be helpful, if a symbol is inherited from a baseclass, and a color of it's icon should be changed without having to rewrite the whole annotation again.

Regards,
Hannes

Re: Use of constants in graphical annotations

The instantiated variables and constants from a class cannot yet be used in the annotations.
We should fix that in some future, but we're focusing on some other more important things right now.

Cheers,
Adrian Pop/

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