sequence diagram: add participants anywhere, not just top and bottom

+2 votes
asked Mar 12, 2020 in Wanted features by junkw (240 points)

Wanted

Be able to put the participants anywhere in the diagram

like this, the participants would be show in the middle (not just on top and bottom):

the ideal would be to add the participants anywhere I want by adding a code like "insert_participants"

reason is when I have a long vertical diagram, i need to be able to see the participants

1 Answer

0 votes
answered Feb 28, 2021 by sou3ilow

I came up with an idea to define a procedure like that:

!procedure $insert_participants()

    rnote over Alice : Alice

    /rnote over Bob : Bob

!endprocedure

and to use it anywhere like that:

%invoke_procedure("$insert_participants")

 

commented Jun 30, 2021 by The-Lu (63,920 points)

Hello all,

Adapted from this answer.

A possible workaround is to add a user procedure as:

!procedure $insert_participants()
   rnote over a #FEFECE: a 
  /rnote over b #FEFECE: b
  /rnote over c #FEFECE: c
!endprocedure

And just to use it anywhere like that:

$insert_participants()

Example:

See similar request here:

If that can help,
Regards,
Th.

...