Opened 4 years ago

Closed 13 months ago

#6144 closed defect (fixed)

dynamic visibility of Modelica.Blocks.Interfaces.RealInput

Reported by: lukas.koenemann@… Owned by: adrpo
Priority: blocker Milestone: 1.21.0
Component: OMEdit Version:
Keywords: Cc:

Description (last modified by casella)

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 change the parameter "visibility" but the visibility of the variable doesn't change.

Change History (6)

comment:1 Changed 4 years ago by perost

  • Component changed from Frontend to OMEdit
  • Description modified (diff)
  • Owner changed from perost to adeas31

comment:2 Changed 4 years ago by casella

  • Description modified (diff)
  • Milestone changed from Future to 1.17.0
  • Owner changed from adeas31 to adrpo
  • Priority changed from high to blocker
  • Status changed from new to assigned

I guess this is very similar to #2081 and #2661, we may try to fix this as well together with them.

Last edited 4 years ago by casella (previous) (diff)

comment:3 Changed 4 years ago by casella

  • Milestone changed from 1.17.0 to 1.18.0

Rescheduled to 1.18.0

comment:4 Changed 3 years ago by casella

  • Milestone 1.18.0 deleted

Ticket retargeted after milestone closed

comment:5 Changed 3 years ago by casella

  • Milestone set to 1.19.0

1.18.0 blocker tickets moved to 1.19.0

comment:6 Changed 13 months ago by adeas31

  • Milestone changed from 1.19.0 to 1.21.0
  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed with instance api.

Note: See TracTickets for help on using tickets.