﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5913	Problems with conditional drawing of connecting lines between connectors	Anton.Soppelsa@eurac.edu	Adrian Pop	"Dear all,

I spotted a potential problem/something I don't understand with the graphical display of lines connecting connectors in the block diagram view.

The following code is expected to connect an input connector to an output connector only when the parameter `draw` is true. Also, in the same conditions, it should draw the input connector and the connecting line.

The connector is drawn correctly, but the line is never drawn, even if `draw = true`. The strange thing is that if I replace `visible = draw` with `visible = true` the line becomes visible.

Sincerely,
  Anton

{{{
within Didactic.Basics;
model TestConditionalConnectionDrawing

  Modelica.Blocks.Interfaces.RealInput u if draw
   annotation(
    Placement(visible = draw, transformation(origin = {-100, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {-100, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  
  Modelica.Blocks.Interfaces.RealOutput y
   annotation(
    Placement(visible = true, transformation(origin = {100, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {100, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  
  parameter Boolean draw = true;
  
equation
  connect(u, y)
   annotation(
    Line(visible = draw, points = {{-100, 0}, {94, 0}, {94, 0}, {100, 0}}, color = {0, 0, 127}));

annotation(
    uses(Modelica(version = ""3.2.3"")));
end TestConditionalConnectionDrawing;
}}}"	defect	closed	normal	1.18.0	Interactive Environment	v1.14.1	duplicate		
