Author Topic: Independent class diagram  (Read 1536 times)

Lukis92

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Independent class diagram
« on: June 13, 2015, 12:51:36 am »
Hi.
How to do that 2 class diagram was independent. When I try to do 2 kind of diagram(analysis and project). When I try change compose to simple inheritence(overlapping).
Diagram klas(analityczny)
Diagram klas(projektowy)

qwerty

  • EA Guru
  • *****
  • Posts: 9693
  • Karma: +176/-151
  • I'm no guru at all
    • View Profile
Re: Independent class diagram
« Reply #1 on: June 13, 2015, 01:37:02 am »
Not sure whether I got your question correctly. To have two diagrams open you can drag the tab with the name and make them float or dock anywhere you want.

q.

Lukis92

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Independent class diagram
« Reply #2 on: June 13, 2015, 02:47:33 am »
Maybe I describe more simply:)
I have 2 class diagram:
first:


In a second diagram it's ugly result:
last:


how to change, that other diagram don't change apperance

qwerty

  • EA Guru
  • *****
  • Posts: 9693
  • Karma: +176/-151
  • I'm no guru at all
    • View Profile
Re: Independent class diagram
« Reply #3 on: June 13, 2015, 02:58:53 am »
Ah. For the connectors set from the context Line Style/Tree Vertical

q.

Lukis92

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Independent class diagram
« Reply #4 on: June 13, 2015, 03:05:17 am »
You don't understand I don't want a overlapping line in second diagram.

qwerty

  • EA Guru
  • *****
  • Posts: 9693
  • Karma: +176/-151
  • I'm no guru at all
    • View Profile
Re: Independent class diagram
« Reply #5 on: June 13, 2015, 05:33:19 am »
You're right. I don't understand.

q.

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 195
  • Karma: +0/-0
    • View Profile
Re: Independent class diagram
« Reply #6 on: June 15, 2015, 09:58:17 am »
Hi Lukis,

As you discovered, when you create a connector in EA, by default it will be drawn on all other diagrams where those two elements appear.

If you don't want the connector to be drawn on all other existing diagrams, after you draw the connector, right-click it and choose from the context menu: Visibility > Hide Connector in Other Diagrams. You'll get a list of diagrams where that connector appears. Clear the appropriate check boxes or just click "Suppress All". (If those other diagrams are open when you do this, you might need to reload/refresh them to see the changes.)

Hope that helps.

Ben

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6453
  • Karma: +55/-6
    • View Profile
Re: Independent class diagram
« Reply #7 on: June 15, 2015, 12:32:09 pm »
If you are wanting two diagrams to be completely independent, the best approach is to use completely different elements. As Ben commented, the natural behavior of EA is to show all the relationships between the elements shown on a diagram. The visibility can be overridden for any diagram, but new diagrams will always get all the relationships initially.

Quote
change compose to simple inheritence
Are you attempting to remove the composition an use inheritance instead? If so, it sounds like you've removed the composition off one diagram, but left it in the model itself. (So it still shows in other diagrams.)

Simon

support@sparxsystems.com