In an IBM Rational Rhapsody sequence diagram, lifeline operations/messages are moving and/or resizing

Technote (troubleshooting)


This document applies only to the following language version(s):

English

Problem(Abstract)

When drawing operations/messages on a lifeline in IBM Rational Rhapsody, other lifeline operations/messages are moving and/or resizing. The messages that are created are ones that calls itself (see below). Also in this specific scenario, one is trying to show different operations happening on different lifelines simultaneously, at class creation.



Symptom

Steps:

  1. Create a SD
  2. Add a few life lines
  3. Add a message from one from one lifeline and back to itself.
  4. Now do the same on a different life line at the same position as the first one



In the above graphic, we tried to add Operation_0() on the class_7 at the same position as when we added in for class_6, but a vertical shift occurred.

Cause

The current behavior is as expected. Following is an explanation on why:

As you probably know in sequence diagram the vertical axis represents the system life time dimension.

Rhapsody default configuration is that for each given time there should be a single occasion (self / intermediate event / message send / receive)

For this purpose Rhapsody maintains a minimum vertical space between occasions, which is validate following each draw, and might cause message shifting. The default minimum vertical space is set to 20 pixels.


Resolving the problem

This value (The default minimum vertical space is set to 20 pixels.) can be changed by adding "SequenceDiagram::General::MinimumVerticalSpacing" to site.prp file:



    Subject SequenceDiagram

             Metaclass General

                     Property MinimumVerticalSpacing Int "20"

             end

    end

    end

    // An empty site.prp file must contain the keyword 'end' at the end of the file



When you set property value to 0, no shifting will occur.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Rhapsody
General Information

Software version:

7.6.1, 7.6.1.1, 7.6.1.2, 7.6.1.3, 8.0, 8.0.1, 8.0.2

Operating system(s):

Windows

Reference #:

1636891

Modified date:

2013-05-09

Translate my page

Machine Translation

Content navigation