Note: The UML package diagram is not available in Visio 2013 and newer versions. For information on UML diagrams in Visio 2013 and newer versions, see UML diagrams in Visio.
-
In Visio 2010: Under Template Categories, click Software, and then click UML Model Diagram, and then click Create.
In Visio 2007: On the File menu, point to New, point to Software, and then click UML Model Diagram.
-
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
-
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.
-
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.
No comments:
Post a Comment