-
Notifications
You must be signed in to change notification settings - Fork 297
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
Parameter prefix is neglected by GUI although it is defined in choice #11708
Comments
Can you please provide a MWE? |
Yes, the same MWE of #11665 may be used. I repeat it here with the response on current OM 1.23-dev. package inputInchoices
import Modelica.Units.SI;
model A
replaceable type typeCustom = input SI.VolumeFlowRate "Description" annotation(
Dialog(enable = true),
choices(choice(redeclare type typeCustom = parameter SI.VolumeFlowRate "parameter"),
choice(redeclare type typeCustom = input SI.VolumeFlowRate "input")));
typeCustom var = 1
annotation(Dialog(enable = true));
annotation(
Icon(graphics = {Rectangle(origin = {9, 7}, extent = {{-51, 47}, {51, -47}})}));
end A;
model Top
A a annotation(
Placement(transformation(origin = {-2, 10}, extent = {{-10, -10}, {10, 10}})));
end Top;
end inputInchoices; And the parameters dialog showing properly the input but not the parameter prefix. Thank you! |
@perost can you please take care of it. |
Fixed in #11711. When I fixed the previous issue I was looking at the latest Modelica specification where short class declarations are only allowed to have the input/output prefixes, and missed that more prefixes were allowed in Modelica 3.3 and earlier. |
I did not know such a detail. Thank you for the information @perost and excuse me then for open again this issue. |
Hi,
I have tested the issue #11665 (closed) with the same minimal example (and in other more complex situations) and it works fine for the input prefix but it does not for the parameter prefix, which is neglected.
I have used the latest nightly build OM 1.23-dev in Windows 11.
Thanks!
The text was updated successfully, but these errors were encountered: