Create a UML package diagram

  1. On the File menu, point to New, point to Software, and then click UML Model Diagram.

  2. In the tree view, right-click the package 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

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. Drag shapes onto the drawing page to represent the elements the subpackage contains.

  9. 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.

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!

×