Search code examples
plantuml

Carriage return after a rectangle


I have the following definition in which I need to have all two inner rectangles in vertical layout, instead of horizontal like in the below image;

enter image description here

@startuml

rectangle "AAAAAA" {

  rectangle "CCCCCC" {
    CDE --> (AAAAAAAAAAAAAAAAAA)
    CDE --> (BBBBBBBBBBBBBBBBBB)
    CDE ---> (CCCCCCCCCCCCCCCCC)
    CDE ---> (DDDDDDDDDDDDDDDDD)
    CDE ----> (EEEEEEEEEEEEEEEEE)
    CDE ----> (FFFFFFFFFFFFFFFFF)
    CDE ----> (GGGGGGGGGGGGGGGGGGGG)
  }

  rectangle "BBBBBB" {
    ABC-down-> (AAAAAAAAAAAAAAAAA)
    ABC -> (BBBBBBBBBBBBBBBBBBB)
    ABC --> (CCCCCCCCCCCCCCCCCC)
  }
}

@enduml

Is there a way to do that?


Solution

  • I managed to achieve it with a really crazy trick, I was trying to control layout with a hidden arrow;

    Though with different data it might get messy, do let me know if your real example works or not.

    Working example