Creating New Diagrams

Diagrams exist within the context of a project. Create or open a project before creating any new diagrams.

By default, diagrams are stored in the Together Model directory as XML files with the file extension *.txvDiagram_Type. For example, the file *.txvuse corresponds to a use case diagram, while the file *.txvseq corresponds to a sequence diagram. Choose from any of the methods below to create a new diagram in a project.

Using the UML Explorer

To create a new diagram from the UML Explorer:

  1. In the UML Explorer view, right click on a source code package or the project root.


  2. From the context menu, select New UML Diagram. The New Diagram Wizard displays. See, Using the New Diagram Wizard below for more information.

Alternatively, right click on the default diagram of a source package, select New Diagram, and choose the diagram type from the submenu.

Using the UML Navigator

The UML Navigator is not open by default. To open the UML Navigator view, from the menubar, select Window > Show View > UML Navigator.

To create a new diagram from the UML Navigator:

  1. In the UML Navigator view, right click on a package or the project root.


  2. From the context menu, select New Diagram and choose the diagram type from the submenu.

Using the New Diagram Icon

To create a new diagram using the New Diagram icon:

  1. Click the arrow to the right of the New Diagram icon on the Diagram view toolbar.


  2. Choose the diagram type from the submenu.

Using the New Diagram Wizard

To create a new diagram using the New Diagram Wizard:

  1. From the menubar, select File > New > UML Diagram. The New Diagram Wizard displays.


  2. Specify the properties for the new diagram as follows:

     

  3. Click Finish.

If the Diagram view is already open, then the view is updated with the new diagram. If the Diagram view is not open, then it opens and displays the new diagram.

Using the Generate Class Diagram Command

From a package diagram physical view, you can create a logical view of a class diagram. Changes made to one diagram are reflected in the other. To create a class diagram from a package diagram, right click on the package diagram, and select Generate Class Diagram from the context menu. The new class diagram displays in the Diagram view.