Add data types to a UML system model

  1. Open the UML diagram file that represents your system.
  2. Right-click the UML System icon 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.), click Packages, and then click New.
  3. In the Package column, type a name for the data types 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.) (for example, My Data Types), type or choose other package properties, and then click OK.
  4. Right-click the new package, then click New, and then click Datatype.
  5. Type a name for the data type, type or choose the other properties you want, and then click OK.

An icon for the new data type is added below the package in the tree view.

  1. Repeat steps 4 and 5 until you have added all the data types you need.
  2. If you want the new data types to appear in each new system model you create, save the file as a template. In the Save As dialog box, for Save As Type, choose Template (*.vst). Open this template when you start a new model.

 Tip   You can add interfaces (interface: Specifies the externally visible operations of a class, component, package, or other element without specifying internal structure. An interface has only operations but no attributes, states, or associations.) to a system the same way you add data types. Follow steps 1 to 3 above to add a new interface package to the system. Right-click the new package, and then click New, and then click Interface to add a new interface.

Applies to:
Visio 2007