In the Containment Tree, select the Projects Structure and do one of the following:
From the selected package's shortcut menu, select Create Diagram > Projects Structure.
In the modeling tool's main menu, click Create Diagram, search for Projects Structure and select it.
Name a diagram or leave it with the default name.
Creating an element
When the diagram is created, you can start creating the appropriate elements. An example is described using Project element, but the same is valid for other structural elements.
To create an Project in a diagram
In the diagram palette, click the Project and then click the appropriate place on the diagram pane.
In the Containment tree, right click the Projects Structure package and from the shortcut menu, select Create Element. Search for the Project and select it.
Name the element.
Drag the created element from the Containment tree to the diagram pane.
To create the elements from other resources (e.g. Word, Excel, HTML)
Copy a list in your resource.
In a diagram, press Ctrl+V and from the Paste Special dialog, choose Element.
From the Select Type dialog, choose Project (or other appropriate element).
Once the Composition relationships is created, in the Containment tree, you can see the Composite element and note the Project Roles (Part Properties) displayed within the namespace of the Composite element and how the element type and multiplicity is shown.
To connect the elements with the Aggregation relationship
Select an element, which will be the Composition End.
In the diagram palette, click the black arrow near the Directed Aggregation and choose Aggregation.
Click the element which is the Aggregation End and draw the relationship to the Reference End.
Changing the role name and specifying multiplicity
To change the role name
Right-click the selected Role end of the relationship.
From the shortcut menu, select Edit Name. The default name will be displayed.
You can edit the default name on the diagram, in the Containment tree, or in the role's Specification window.
If you already have created a structure in the Containment tree, you can display it on the diagram. There are three ways to display the structure:
Relationship (direct) Notation. If you choose using this notation, the structure will be displayed on a diagram pane with the elements connected with relationships.
Attribute Compartment Notation. If you choose using this notations, the structure will be displayed as the attributes in the Attributes compartment.
Structure (Nested elements) Notation. If you choose using this notations, the structure will be displayed in the Structure compartment.
To display a created structure on a diagram (Direct Notation)
Drag the selected element with the part properties on to the diagram.
Right-click that element, and from its shortcut menu, select Display > Display Related Elements.
When connecting the elements with Composition/Aggregation relationships, the roles are Association Ends. In such case, the roles will not be displayed in the Attributes compartment, only in the Structure compartment.