Book a Demo

Author Topic: How to hide a part of the connectors in a diagram.  (Read 3805 times)

Jacky

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
How to hide a part of the connectors in a diagram.
« on: June 02, 2009, 03:28:58 am »
Right-click the active diagram, after selecting "Properties/connectors", and unchecking the "Show Relationships" box, all connectors in the diagram will be hidden.
But is there an equally simple way to hide only part of the connectors in the diagram, by some criteria?

Following is the requirement in details.
  • There is a diagram containing some functional Requirements, and some "aggregation" connectors. Another diagram contains some Usecases, some of which <<includes>> others. And "Realize" relations are defined in the Matrix to represent that some Usecases implement some functional requirements.
  • Now I need a diagram to show which Usecase implements which Requirement.
  • I create a new diagram, copy all Requirements from one of the diagram, then copy all Usecases from the other.

Now I need to show only the "Realize" connectors, and hide all the "aggregation" and "<<includes>>" connectors.
[/list]
My theories are always correct, just apply them to the right reality.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: How to hide a part of the connectors in a diag
« Reply #1 on: June 02, 2009, 02:31:45 pm »
Open the diagram. Press [Ctrl]+[Shift]+. The Set Relationship Visibility dialog displays. DESELECT the checkbox against each relationship to hide in the diagram (that is, all relationships other than Realize).

Click on the OK button.

Does that do what you want?
Best Regards, Roy

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to hide a part of the connectors in a diag
« Reply #2 on: June 02, 2009, 09:10:03 pm »
Note that Roy's approach works for a single diagram. EA does not remember these settings; they will not be applied to future diagrams, and new connectors added to the current diagram must also have their visibility set. If you later add a connector between two of the elements on the diagram - even if you add the connector in another diagram - it will appear by default; you will have to set the visibility on each diagram where you do not want it to show. [You might be able to do this by right-clicking the new connector and setting the visibility there, if that works in your situation.]
No, you can't have it!

Jacky

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: How to hide a part of the connectors in a diag
« Reply #3 on: June 04, 2009, 12:34:47 pm »
Thank you!

RoyC's approach is exactly the solution.

For some unknown reason I ignored menu item "Visible Relations", hence I coded a script to solve it. After reading <<Midnight>>'s words, I think maybe the script is not completely useless ...

Good product.
My theories are always correct, just apply them to the right reality.