Associated diagrams and relationships between their elements

This tutorial shows how to create associate diagrams and define the relationship between two elements, which are defined in two different diagrams.

1

Create Package Diagram with two packages named PackageA and PackageB.

2

Associate new diagram to PackageA – click on Add New Diagram in context menu of package (context menu available on right click).

3

Select Class Diagram, type its name and confirm it clicking on OK button.

4

Draw a class diagram.

5

Repeat steps 2 to 4 for PackageB.

6

In Project tab of Side bar, choose All Entities view.

7

Open the package diagram with PackageA and PackageB . Drag ClassA from project tree and drop it to PackageA and ClassB to PackageB.

8

Insert relationship between two classes. For example choose Use relationship and drag from ClassA to ClassB.

Finished!

Comments

Carl Edwards 23 March 2014 20:39:51

Associating elements

I read the tutorial on how to associate elements from different diagrams. (Associated diagrams and relationships between their elements). The instructions made use of packages. I'm wondering does this defeat the purpose of having the function that allows for associating an element with a diagram by right clicking on the element? What is the difference?

Dusan Rodina - softwareideas.net 23 March 2014 21:35:54

RE: Associating elements

I answered your question here:

http://www.softwareideas.net/Forum/Topic/84

Michael 28 May 2011 11:28:50

Subdiagramms

Could this also work for subdiagrams?

I would love to have subdiagrams to actions in activity diagrams where slots (perhaps as input pins) in the subdiagram are synchronized with the ones on the upper level.

Or is that by any chance already possible and am I just not seeing the functionality?

Dusan Rodina - softwareideas.net 29 May 2011 16:07:28

RE: Subdiagramms

The synchronization is bidirectional and can be used for any element in any diagram, but it updates only the content of individual elements (name, stereotypes, tagged values, attributes, etc.). New relations between elements are not inserted into the another diagram automatically - you have to insert them manually.

New Comment

Comment