MagicDraw 19.0 LTR Documentation


A lifeline represents an individual participant in the Interaction. The lifeline represents only one interacting entity, symbolized by a rectangle.

The following steps show you how to work with a lifeline:

Assigning a type to a lifeline

To assign a type (classifier) to a lifeline


Do one of the following:


  • In the lifeline Specification window, in the Type property value, click the ... button, and in the open dialog, select the type. When you are finished, click OK.
  • On the diagram, from the lifeline shortcut menu, select Type. In the open list, select the type.
  • On the diagram, click a lifeline, and then, on the smart manipulator toolbar, click . In the open list, select the type.
  • On the diagram, click a lifeline, and then press Ctrl+T. In the open list, select the type.
  • On the diagram, select a lifeline, and in the name area, type the “:” and the name of the type. Press Enter or click anywhere on the diagram. The type is created and assigned.

    Type the “:”, press Ctrl+Space, or Ctrl+Backspace. In the open list, select the type.

  • In the Containment tree, select an element and drag it to the lifeline shape.


Showing/hiding a base classifier

To hide/show a base classifier


  • On the diagram, right-click the lifeline. From the shortcut menu, select the Show Classifier check box.


Displaying lifelines

You can display lifelines on the Sequence or Communication diagram in the following ways:

  • By manually dragging lifeline elements from the Containment tree.
  • By automatically using the Display Lifelines dialog.

There are two situations in which you can use the Display Lifelines dialog to automatically display lifelines:


To display lifelines when creating a new diagram


  1. When creating a new Sequence or Communication diagram for an existing classifier, the Display Lifelines dialog opens automatically.
    The Display Lifelines dialog opens automatically when creating a new Library System Communication diagram.
  2. In the opened Display Lifelines dialog, select the lifelines you want to display, and click OK.
    Selected lifelines are displayed on the diagram pane.


To display lifelines in a preexisting diagram


  1. Select the diagram pane.
  2. Open the Display Lifelines dialog by performing one of the following steps:
    • From the diagram shortcut menu, select Display > Display Lifelines.
    • On the diagram toolbar, click Display and select Display Lifelines.
      The  Display Lifelines command from the shortcut menu in the Order Ticket Sequence diagram.
  3. In the dialog, select the lifelines you want to display, and click OK.
    Selected lifelines are displayed on the diagram pane.
    Displayed lifelines on the Order Ticket Sequence diagram pane.


Sample model

The models used in the figures of this page is the Communication diagram and Sequence diagram sample models that comes with MagicDraw. To open this sample do one of the following:

  • Download:
       -
    communication diagram.mdzip.

       - sequence diagram.mdzip.
  • Find in modeling tool:
       - <modeling tool installation directory>\samples\diagrams\communication diagram.mdzip.
       - <modeling tool installation directory>\samples\diagrams\sequence diagram.mdzip.
  • No labels