Author Topic: Newly added connector appears in existing diagrams  (Read 5900 times)

plelovsky

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Newly added connector appears in existing diagrams
« on: January 22, 2015, 02:25:43 am »
If I add an association between classes to any diagram, then this association will appear in all the already existing diagrams, which include these classes. After adding of each association I have to select "Visibility / Hide Connector in Other Diagrams" from the context menu.
Can be the newly added connector between some elements set to not appear in other diagrams?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Newly added connector appears in existing diag
« Reply #1 on: January 22, 2015, 05:12:49 am »
Again here you need to implement an add-in that will do the job for you.

AFAIR  a similar question had been asked here.

q.

Robert Sheridan

  • EA User
  • **
  • Posts: 105
  • Karma: +0/-0
    • View Profile
Re: Newly added connector appears in existing diag
« Reply #2 on: January 27, 2015, 07:23:49 am »
There is a option in the context menu to hide in other diagrams, but the best way to acheive this is to use instances rather than links (see Geerts website for an article on this) then the connections only show where the instance is used.

plelovsky

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Newly added connector appears in existing diag
« Reply #3 on: January 27, 2015, 07:00:14 pm »
Thank you Robert, I will try this way.
P.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Newly added connector appears in existing diag
« Reply #4 on: January 29, 2015, 06:23:39 pm »
Quote
There is a option in the context menu to hide in other diagrams, but the best way to acheive this is to use instances rather than links (see Geerts website for an article on this) then the connections only show where the instance is used.
The specific article Robert mentioned is UML Best Practice: There are no Activities on an Activity Diagram

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Newly added connector appears in existing diag
« Reply #5 on: January 30, 2015, 09:30:41 am »
Quote
The specific article Robert mentioned is UML Best Practice: There are no Activities on an Activity Diagram
A better title would probably be "Enterprise Architect Best Practice: There are no Activities on an Activity Diagram". You couldn't do that if you tried in a strict UML model. The problem is that EA includes Activity on the toolbox for Activity diagrams and is generally allowing of any mess you want to make.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Newly added connector appears in existing diag
« Reply #6 on: January 30, 2015, 09:43:32 am »
I guess it would be a good idea to issue once-warnings when trying to create that garbage. Especially (!) when you drag classes onto sequence diagrams.

q.
« Last Edit: January 30, 2015, 09:43:57 am by qwerty »

plelovsky

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Newly added connector appears in existing diag
« Reply #7 on: January 30, 2015, 05:19:34 pm »
I don't do drag classes onto sequence diagrams. I mostly don¨t use sequence diagrams at all in the domain model.
For example, I drag a connector between Project and Person classes. The connector appears in all existing class diagrams, which contain classes Project and Person. This behavior decreases clarity of other diagrams.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Newly added connector appears in existing diag
« Reply #8 on: January 30, 2015, 05:32:10 pm »
This was meant towards Sparx, not you. Regarding the connectors: you should get an idea of what you are actually doing. If you add connectors and do not want to show them this clearly indicates an error in the way you are modeling. Its like writing a book and keeping the chapters secret. I'm not going to argue here. You should probably read and understand what Geert published. Just "giving it a try" will not solve your basic problem.

q.