-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can %par textString expressions be used as literal expressions in DynamicSelect? #3573
Comments
Test model:
I think it's allowed. (System Modeler supports this by showing the value of |
I also think this make sense. |
I think there is actually no contradiction here. At the same time, https://specification.modelica.org/maint/3.6/annotations.html#text explains the text macros (emphasis mine):
So, in my mind
|
Section 18.6.5.5 defines the meaning of Text annotations including "%" in textString, in particular
while Section 18.6.6, which defines DynamicSelect, reads:
Consider now the following annotation:
annotation(Icon(graphics = {Text(textString=DynamicSelect("%x_start", String(x))}));
where
x_start
is a parameter. On the one hand,"x_start"
is a literal String expression. On the other hand, it clearly refers to a parameter value, so it's not really literal.How should this case be interpreted?
The text was updated successfully, but these errors were encountered: