Opened 5 years ago
Last modified 20 months ago
#6144 closed defect
dynamic visibility of Modelica.Blocks.Interfaces.RealInput — at Initial Version
Reported by: | Owned by: | Per Östlund | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.21.0 |
Component: | OMEdit | Version: | |
Keywords: | Cc: |
Description
I want to change the visibility of a Modelica.Blocks.Interfaces.RealInput dynamic via another parameter. For example:
model Example
parameter Boolean visibility = true;
Modelica.Blocks.Interfaces.RealInput InputValue annotation(
Placement(visible = visibility , transformation(origin = {-60, 120}, extent = {{-20, -20}, {20, 20}}, rotation = -90), iconTransformation(origin = {-60, 120}, extent = {{-20, -20}, {20, 20}}, rotation = -90)));
end Example;
When i drag and drop the example model into a test area, i can chage the parameter "visibility" but the visibility of the variable dont change.