Book a Demo

Author Topic: Prevent thats appear a relationship in diagram  (Read 4392 times)

arisso

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Prevent thats appear a relationship in diagram
« on: May 23, 2012, 03:26:35 am »
Hi, I have the following problem:

If in Diagram 1, are the classes A and B, and in another diagram 2, I make a relationship between them, then the relationship appears in Diagram 1.

I do not want Diagram 1 is modified.

Does anyone know how to prevent it from being modified?

(I'm sorry for my English)
Thanks.

EA version: 9.2

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Prevent thats appear a relationship in diagram
« Reply #1 on: May 23, 2012, 07:28:26 am »
Hi,

Right click the new connector and choose 'Visibility->Hide Connector on other Diagrams'.

WBR
Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

arisso

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Prevent thats appear a relationship in diagram
« Reply #2 on: May 25, 2012, 12:54:12 am »
Thanks for you answer, but it dosen't solve the problem because we have more than 1000 diagrams, and an element like the "account" element for example,  may be in more than 500 diagram, so enter in 500 diagrams and choose hide the relationship no is an option for us.

I suppose there must be a general option to avoid any change in the diagrams, but I can not find it, and the option to "lock" the diagram does not prevent this problem.

We are several people working on the same EA file, so the diagrams we did a year ago, for example, are now full of new relationships that are not consistent with the architecture of that time.

The question: How to prevent the automatic redraw of new relationships?

Thanks.

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Prevent thats appear a relationship in diagram
« Reply #3 on: May 25, 2012, 01:05:04 am »
Hi,

Unfortunately that's the only way I know. You need to apply that immedately after a new connector was created, thus there's no need to enter the other diagrams to hide it.
Otherwise you really need to sort out on each diagram which connectors should be shown there or not.

Another Idea would be to create an automation script that sorts out which connectors were created originally on a specific diagram and hides all other connectors on this diagram (honestly I don't even know if this is feasible).

May be s.o. else here knows a better solution than my proposal.


WBR
Günther
« Last Edit: May 25, 2012, 01:09:23 am by Makulik »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Prevent thats appear a relationship in diagram
« Reply #4 on: May 25, 2012, 02:46:45 am »
The only solution currently is to write an addin that captures connector creation and hide it in all "other" diagrams. Therefore you need to create an element in diagram links telling that the connector must be suppressed. Haven't done that yet. I Guess it's tricky but doable.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Prevent thats appear a relationship in diagram
« Reply #5 on: May 25, 2012, 08:53:29 am »
The problem you will find is that EA doesn't create a "diagram link" database record for the connector in the other diagram until you actually open the other diagram and do something with the connector. So if you're trying to write a script or add-in to hide connectors, the logic will have to be something like: for each connector, find all diagrams containing both the source and target elements, if the diagram doesn't have a diagram link that matches this connector then create it and hide it.
The Sparx Team
[email protected]

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Prevent thats appear a relationship in diagram
« Reply #6 on: May 25, 2012, 03:22:07 pm »
Quote
The problem you will find is that EA doesn't create a "diagram link" database record for the connector in the other diagram until you actually open the other diagram and do something with the connector.

Yeah, one of the "gotchas" when developing add-ins for EA ;D

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Prevent thats appear a relationship in diagram
« Reply #7 on: May 25, 2012, 06:05:09 pm »
Yep. I was aware of that. As I said: it's tricky.

q.

arisso

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Prevent thats appear a relationship in diagram
« Reply #8 on: May 28, 2012, 10:58:47 pm »
Thanks to all of you!.