Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw a self-call in Dia?

Tags:

uml

dia

I just started using Dia. I'm trying to build a sequence diagram. I would like to represent self-calls. How does one do that in Dia? I can't figure it out.

Thanks.

like image 690
JDelage Avatar asked Aug 02 '12 22:08

JDelage


People also ask

How do I create a sequence diagram in Word?

Start a sequence diagram Or if you have a file open already, click File > New. In the Search box, type UML sequence. Select the UML Sequence diagram. In the dialog box, select the blank template or one of the three starter diagrams.


1 Answers

First place a UML Message object with it's base attached to your lifeline.

Then, double-click the arrow (or right-click, Properties), and change the Message Type drop-down field to Recursive, and you'll get something like this:

enter image description here

Now you can drag the green anchor point around to make the Message arrow look as you'd like. (A note of caution: it seems that with a Recursive Message object, you can ONLY select the object by clicking on it exactly where the green anchor point WOULD BE. I say "would be" because of course you can't actually see that green anchor point when the object isn't selected.)

If you like, you can create another UML Lifeline object, and place it overlapping the existing lifeline, like this:

extra lifeline example

This isn't ideal, though, because there isn't actually anything attached to this second lifeline. The Recursive Message object doesn't let you choose where to attach it's arrowhead, because it's automatically attached to the lifeline from which it originated. And because the second lifeline isn't attached to anything, if you go moving objects around it will get left behind. But, it does look pretty, if that's what you're after. :)

like image 149
feuGene Avatar answered Sep 20 '22 05:09

feuGene