Relative simple layout, but right arrow not working

0 votes
asked Oct 9, 2021 in Question / help by kirchsth (7,140 points)

Hello,

how can I  solve the relative simple layout problem?
I want to have a left to right arrow from "b" to "c".

@startuml
rectangle a as a
rectangle S1 as S1 {
  rectangle b as b
}
rectangle c as c
rectangle d as d

a -D-> b : down
b -D-> d : down
c -D-> d : down

' should go right not left
b -R-> c : should be right
@enduml

Thank you and best regards
Helmut

commented Oct 9, 2021 by Martin (9,120 points)

Well I found a way, but it makes no sense!

b -[norank]d-> c : should go down

commented Oct 9, 2021 by The-Lu (74,900 points)

Hello K. & M.,

For that, another solution is to use `together` (for b & c),  as:

@startuml
rectangle a as a
together {
rectangle S1 as S1 {
  rectangle b as b
}
rectangle c as c
}
rectangle d as d

a -D-> b : down
b -D-> d : down
c -D-> d : down

' should go right not left
b -R-> c : should be right
@enduml


If that can help,
Regards,
Th.

commented Oct 9, 2021 by kirchsth (7,140 points)
Thank you, I think together is the more generic and logical solution
Helmut

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...