Book a Demo

Author Topic: Reversing many Realizes connectors?  (Read 5561 times)

wstidolph

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Reversing many Realizes connectors?
« on: March 05, 2013, 08:09:55 am »
So, I modeled while half asleep, and now I have many relationships of the form:

[Requirement] --- <<realizes> --> [Use Case]


Is there a way to bulk-reverse Connectors?

Or, even do it one at a time - I created a Requirements diagram and dropped the Requirements onto it, then I dropped on a Use case - the Realizes Connector shows up, but when I right-click on it and select Advanced the "Reverse Direction" option is gray'ed out? (As are all the options under Change Direction.

(EA 10 build 1006 windows 8 64 bit)
« Last Edit: March 05, 2013, 08:10:56 am by wstidolph »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Reversing many Realizes connectors?
« Reply #1 on: March 05, 2013, 09:53:45 am »
Not directly. You need to write a little script doing the job. Running a SQL is not that easy as you have to swap the contents of two columns (maybe that's possible but I'm not a SQL guru). However, I'd prefer the script.

q.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Reversing many Realizes connectors?
« Reply #2 on: March 05, 2013, 10:18:11 am »
This is actually a deliberate policy.

However, you can create Realize connectors in either direction, so I'm not sure why the system is configured to block reversing this connector type. There is a work around too - display the Connector toolbar (View | Toolbars | Connector), click on the connector, and click on the Reverse Direction icon (second from the right).
Best Regards, Roy

wstidolph

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Reversing many Realizes connectors?
« Reply #3 on: March 05, 2013, 04:57:20 pm »
Thanks, Roy - I didn't even *think* to use the Connector toolbar, when I was working with a bunch of Connector ... I wish I could do it directly in the Relationship Matrix, but this is much more workable than redrawing every Connector and deleting the old ones!
« Last Edit: March 05, 2013, 04:57:38 pm by wstidolph »

wstidolph

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Reversing many Realizes connectors?
« Reply #4 on: March 05, 2013, 05:01:27 pm »
But gosh, qwerty, scripting sounds hard! Where ever would I find a good guide :)

 ... yeah, I've been stalling on learning how to script EA, but it's getting to be more and more my urgent - I'll suppose be a customer soon!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Reversing many Realizes connectors?
« Reply #5 on: March 05, 2013, 05:08:05 pm »
Quote
I wish I could do it directly in the Relationship Matrix
Actually, you can! Set source type to Use Case, target type to Requirement, link type to Realization and Direction to Target->Source, hold the Ctrl key down and select multiple cells, right-click > Delete Relationship, then set Direction to Source->Target and the selection won't change as long as you right-click in a selected cell, so you can right-click > Create new relationship.
The Sparx Team
[email protected]

wstidolph

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Reversing many Realizes connectors?
« Reply #6 on: March 06, 2013, 02:42:26 am »
Quote
Quote
I wish I could do it directly in the Relationship Matrix
Actually, you can! Set source type to Use Case, target type to Requirement, link type to Realization and Direction to Target->Source, hold the Ctrl key down and select multiple cells, right-click > Delete Relationship, then set Direction to Source->Target and the selection won't change as long as you right-click in a selected cell, so you can right-click > Create new relationship.
That's .... excellent. That belongs in the "50 Tricks" book. Thank you!