Opened 7 years ago

Last modified 3 years ago

#4414 new defect

Protected (expandable) connectors within a component model are not suppressed in icon view of component when placed in other models

Reported by: anonymous Owned by: adeas31
Priority: high Milestone:
Component: OMEdit Version: v1.11.0
Keywords: expandable connector icon protected Cc:

Description

  1. Make a component with an expandable connector and appropriate icon (like Modelica.Icons.SignalBus)
  2. Make that expandable connector protected in the component
  3. View the icon layer of the component--you will see no connector icon
  4. Place that component in another diagram--the protected connectors are displayed and are available to make connections.

Change History (8)

comment:1 Changed 7 years ago by anonymous

This code works to recreate the issue

model TopLevel
  // make a part
  model Component
    Modelica.Icons.SignalBus PublicConn annotation(
      Placement(visible = true, transformation(origin = {0, 60}, extent = {{-20, -20}, {20, 20}}, rotation = 0), iconTransformation(origin = {0, 60}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
  protected
    Modelica.Icons.SignalBus ProtectedConn annotation(
      Placement(visible = true, transformation(origin = {0, 0}, extent = {{-20, -20}, {20, 20}}, rotation = 0), iconTransformation(origin = {1, 0}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
    annotation(
      Icon(coordinateSystem(grid = {1, 1})));
  end Component;

  TopLevel.Component component annotation(
    Placement(visible = true, transformation(origin = {0, 2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  annotation(
    Icon(coordinateSystem(grid = {1, 1})),
    uses(Modelica(version = "3.2.2")));
end TopLevel;

comment:2 Changed 7 years ago by anonymous

Same thing appears to happen with normal connectors--not only expandable connectors--as well (like electrical pins).

comment:3 Changed 7 years ago by adeas31

  • Milestone changed from 1.12.0 to 1.13.0

comment:4 Changed 6 years ago by casella

  • Milestone changed from 1.13.0 to 1.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:5 Changed 5 years ago by casella

  • Milestone changed from 1.14.0 to 1.16.0

Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0

comment:6 Changed 4 years ago by casella

  • Milestone changed from 1.16.0 to 1.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:7 Changed 4 years ago by casella

  • Milestone changed from 1.17.0 to 1.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:8 Changed 3 years ago by casella

  • Milestone 1.18.0 deleted

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.