- On the File menu, point to New, point to Software, and then click UML Model Diagram.
- In the tree view (tree view: Displayed in a window in the UML Navigator, a hierarchy in which each UML element or view (diagram) is represented by an icon. The UML template automatically creates a tree view of your model.), right-click the package (package: A grouping of model elements represented in the UML by a symbol that resembles a manila file folder. Each element in a system can be owned by only one package, and one package can be nested in another.) you want to use as a container for other packages, point to New, and then click Static Structure Diagram.
A blank page appears, and the UML Static Structure stencil becomes the top-most stencil. The workspace displays 'Static Structure' as a watermark. An icon representing the diagram is added to the tree view.
Note If the tree view is not visible, point to View on the UML menu, and then click Model Explorer
- In the tree view, click the name of the static structure diagram (static structure diagram: A diagram that shows the static structure of a model; that is, the elements that exist (such as classes and types), the internal structure of the elements, and their relationships to one another.) icon, and then click the name again. Type a new name for the diagram.
- Drag a Package shape from the UML Static Structure stencil onto the package diagram drawing page to indicate one of the packages the top package contains. A package is added to the tree view.
- Double-click the new package shape to open the UML Package Properties dialog box. Type a name for the package, such as SubPackage1, type and choose other property values, and then click OK.
- Right-click the SubPackage1 icon in the tree view, point to New, and then choose the type of diagram you want to represent in the subpackage.
- In the tree view, click the name of the static structure diagram icon, and then click the name again. Type a new name for the diagram, such as SubPackage1 Diagram.
An icon representing the diagram is added to the tree view and the appropriate stencil and a blank drawing page appear.
- Drag shapes onto the drawing page to represent the elements the subpackage contains.
- In the tree view, double-click the diagram icon for Package Diagram, and then repeat steps 3 through 7 until you have created all the subpackages you want.