In capsule-based structure diagrams, you can create a part inside
the diagram to define the structure of the capsule. You cannot create a part
on the border of a capsule.
About this task
To create a part:
Procedure
- In the Project Explorer view, right-click
a capsule; then click Open Structure Diagram.
- In the Palette, click Capsule
Part.
- In the diagram editor, click inside the structure diagram where
you want to create the part.
- Complete one of the following steps:
- To create a part based on a new capsule, click Create Capsule,
type a name for the capsule, and click OK.
- To use an existing capsule, click Select existing element.
In the Select Element dialog box, select a capsule and
click OK.
Results
Tip: You can also drag a capsule into a structure diagram
from the Project Explorer view. The type of part that
you create depends on the capsule class that you drag.