UML Modeling Techniques > Class modeling > Composite structure diagram > Adding items to a composite structure diagram
  
Adding items to a composite structure diagram
You can add an existing item to a Composite Structure Diagram in the following ways:
Dragging items from a Modeler pane to the Composite Structure Diagram.
Through a Structure Diagram toolbar button.
Through the diagram background.
You can add existing items and links to a Composite Structure Diagram in the following ways:
Through populate commands available on the diagram background and symbols.
For information about adding Variability items to a Composite Structure Diagram, see the following topics:
Adding an existing alternative choice to a diagram
Adding an existing variant to a diagram
Adding an existing variation point to a diagram
To drag an item to a composite structure diagram:
1. Open the Composite Structure Diagram.
2. In an appropriate pane, locate the item you want to add to the Composite Structure Diagram.
3. Drag the item from the appropriate pane to the Composite Structure Diagram.
To add an item through a composite structure diagram toolbar button:
1. Open the Composite Structure Diagram.
2. On the Composite Structure Diagram's toolbar, click the appropriate button for the item you want to add, and then on the diagram, right-click the diagram background.
3. From the Select Object dialog, select the item you want to add to the diagram.
To add items and links through the populate commands:
Right-click the diagram background, point to Populate, and then click the appropriate command.
or
Right-click the diagram symbol you want to populate, point to Populate, and then click the appropriate command.
Use the Parts and Ports commands to populate Parts and Ports.
If you populate a link type and the linked item does not appear on the Composite Structure Diagram, Modeler adds the linked item to the diagram.