Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#3470 closed defect (fixed)

Connection of many components doesn't work any more.

Reported by: m.favrel@… Owned by: adeas31
Priority: critical Milestone: 1.9.4
Component: OMEdit Version:
Keywords: connect OMEdit Cc:

Description

The click (on a port) then click another component's port to connect them does not work on many components (but not all). I (and it's the same for friends) can't create the link, instead, the component is moves or selected. To make the link work, we must use "connect(blabla, blablabla)" into the equations.
For exemple :
-library openhydraulics (can't connect volume)
-library Modelica.Mechanics.translationnal (can't connect fixed)
-many others.
It worked fine with version 1.9.2, I've tryed to run it on windows 8.1 and 7, it does not work.

Change History (6)

comment:1 Changed 9 years ago by madengineer10@…

Happens to me on Ubuntu 14.10, in addition to Win7. It appears to affect any component with a port at its origin (i.e. where the red cross appears when moving the component), so Modelica.Mechanics.Translational.Fixed cannot be connected except by editing source code, whereas Modelica.Electrical.Analog.Basic.Ground can be connected in the GUI because its port is off center.

Oddly enough, after creating a connection in the source code, creating the same connection in the GUI then works. This generates an identical connection in the source code that includes the usual line annotation to make it show up on the diagram. I can then delete the original un-annotated connection.

comment:2 Changed 9 years ago by anonymous

I have troubles with some connections, too.
As already mentioned, the problem can be solved (in some cases) by adding the source code, e.g. connect(line1.B,sink1.A). Afterwards, I can create the Connection line which causes a new line in the source code (the code that I had added manually can now be deleted again).

BUT: I created a new component where the described solution does not work. It seems to be impossible to connect this component. The simulation runs without any problems if I add the source code (connect()) but the connection line is still missing and can't be added in the block diagram . Another component (in this case a line with an inflow and outflow port) that uses the same port (by using extend ...) can be connected without any problems.

Win7 Pro SP1, OMedit v1.9.3

comment:3 Changed 9 years ago by anonymous

+1

comment:4 Changed 9 years ago by adrpo

  • Resolution set to fixed
  • Status changed from new to closed

Hopefully fixed in 8637b07/OMEdit. This was fixed since a while now (14 August) on a branch by Adeel but now I ported the fix to the OMEdit master.

I checked making a connection to:

  • Modelica.Mechanics.Translational.Fixed
  • Modelica.Electrical.Analog.Basic.Ground
  • Modelica.Mechanics.MultiBody.Parts.PointMass (#3408)

and it seems to work fine.

Please test and re-open the ticket if you have issues.

comment:5 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.9.4 to 1.9.4-1.9.x

Milestone renamed

comment:6 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.9.4-1.9.x to 1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.