Opened 6 years ago

Closed 6 years ago

#5422 closed defect (fixed)

Fail to connect Modelica.Icons.SignalBus components (expandable connectors)

Reported by: dariomangoni@… Owned by: Adeel Asghar
Priority: blocker Milestone: 1.14.0
Component: OMEdit Version: v1.14.0-dev-nightly
Keywords: Cc:

Description

The GUI for connecting expandable connectors (extending from Modelica.Icons.SignalBus) fails when linking two connectors from different components.

package BusGUI
  expandable connector busType
    extends Modelica.Icons.SignalBus;
  end busType;

  model testBus
   busOwner busOwner1 annotation(
      Placement(visible = true, transformation(origin = {-60, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
   busOwner busOwner2 annotation(
      Placement(visible = true, transformation(origin = {60, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  equation

  end testBus;

  model busOwner
   busType bus annotation(
      Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  equation

  end busOwner;
end BusGUI;

when I try to connect the two busType instances the GUI returns

https://imgur.com/LygQp7N

and it creates the connector

connect(bus, bus);

instead of

connect(busOwner1.bus, busOwner2.bus);

Attachments (1)

omeditcommunication.log (3.0 MB ) - added by Adrian Pop 6 years ago.
the omedit-omc communication for debugging.

Change History (6)

comment:1 by Francesco Casella, 6 years ago

Component: FrontendInteractive Environment
Milestone: Future1.14.0
Owner: changed from somebody to Adrian Pop
Priority: highblocker
Status: newassigned

This should be checked with the new API

comment:2 by Adrian Pop, 6 years ago

This has nothing to do with the new API.
I will have a look on how OMEdit is handling this, as OMC does the correct thing here when it gets:

addConnection(bus,bus,BusGUI.testBus,annotate=Line(points={{-60,0},{60,0},{60,0},{60,0}},color={255,204,51},thickness=0.5)) 22:43:35:923

by Adrian Pop, 6 years ago

Attachment: omeditcommunication.log added

the omedit-omc communication for debugging.

comment:3 by Francesco Casella, 6 years ago

Owner: changed from Adrian Pop to Adeel Asghar

I guess @adeas31 should have a look then.

comment:4 by Adeel Asghar, 6 years ago

Component: Interactive EnvironmentOMEdit
Status: assignedaccepted

comment:5 by Adeel Asghar, 6 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.