Book a Demo

Author Topic: how to define the connection point to an element?  (Read 7537 times)

Roberto_il_vecchio

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
how to define the connection point to an element?
« on: February 25, 2015, 08:39:48 pm »
As the Gateway that has 4 specific corners, where the connectors can be connected (and are not connected in other position of the shape) we want to create an element with one specific outgoing connection point. (and put the incoming connections on the opposite side).
How can we do it? In the shape script? In the profile?
Thanks in advance.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: how to define the connection point to an eleme
« Reply #1 on: February 27, 2015, 03:35:37 am »
You can do it with a shape script. But setting the arrow on one element so that it points opposite to that of another needs an add-in. Or you can use the same schema as for ports in SysML where you set the direction manually.

q.

Roberto_il_vecchio

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: how to define the connection point to an eleme
« Reply #2 on: March 02, 2015, 08:40:21 pm »
We need to explain better our problem:
The problem is not is direction of the connector, but we need to create a new stereotype, and this stereotype should force the position where the connectors can enter or exit.  
We see that the "Gateway" stereotype has the feature that you can put the connectors only into the vertex (the corners). How can we define a constraint like this one, in our  stereotype?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: how to define the connection point to an eleme
« Reply #3 on: March 02, 2015, 10:30:37 pm »
Could you post a sketch of what you like to see? You'd need to place it on some public server.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: how to define the connection point to an eleme
« Reply #4 on: March 03, 2015, 08:56:11 am »
It sounds like you're trying to implement something like IDEF0 in which connectors attached to the left edge of an element are inputs, right edge are outputs, top edge are controls, and bottom edge are mechanisms. Sorry, there's no way to enforce those kind of constraints in EA.
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: how to define the connection point to an eleme
« Reply #5 on: March 03, 2015, 09:03:59 am »
Except maybe with some kind of add-in?

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: how to define the connection point to an eleme
« Reply #6 on: March 03, 2015, 09:17:03 am »
Yes. Try pinning the ends of a connector and looking in t_diagramlinks.Style. There will be values like "LSP=050L;" (locked start point, 50% along left edge), "LEP=094T;" (locked end point, 94% along top edge) etc. I have never tried manipulating these in an add-in, but it should be workable. [Of course, your users can always unpin the ends and move them. If that happens, I advise you get better users ;) ]
« Last Edit: March 03, 2015, 09:19:23 am by KP »
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: how to define the connection point to an eleme
« Reply #7 on: March 03, 2015, 09:55:58 am »
Quote
I advise you get better users ;)
That's one of the first things I do in projects. Either they are willing to cooperate or they are free to go.

q.
« Last Edit: March 03, 2015, 09:56:22 am by qwerty »

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: how to define the connection point to an eleme
« Reply #8 on: March 04, 2015, 12:01:03 pm »
I once tried that philosophy in a class of 12-year-olds. There were 25 in the room at the start of the lesson, and none 20 minutes later...
Best Regards, Roy

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: how to define the connection point to an eleme
« Reply #9 on: March 04, 2015, 10:04:19 pm »
I guess that saved you and them a lot of grief. So it's a good approach ;-)

q.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: how to define the connection point to an eleme
« Reply #10 on: March 05, 2015, 08:55:11 am »
(OT) They had fun. I started to have fun. Then the Headmaster came in to find out why 25 boys were running riot outside. I stopped having fun.
Best Regards, Roy

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: how to define the connection point to an eleme
« Reply #11 on: March 05, 2015, 09:49:21 am »
Yeah, lol. In a real project the only one to ask would be a recruiter or an employment office :-) If you have motivated kids you would probably not have lost them. My youngest is very engaged and in school he and his friends have a lot of fun in that kind of courses.

q.