Including same sequence diagram two times displays it once.

0 votes
asked Mar 15, 2018 in Bug by inata (180 points)

Below example shows the problem:

'filename: a.puml

@startuml(id=selfcall)
A->A
@enduml

@startuml
    !include a.puml!selfcall
    !include a.puml!selfcall
@enduml

I would expect two self A calls, but above code will generate just one. Is it possible to fix it or force it in recent versions? By e.g. setting some property or something like that.

1 Answer

0 votes
answered Mar 15, 2018 by plantuml (295,000 points)
selected Mar 19, 2018 by inata
 
Best answer

You can use !include_many instead of !include.

There is a protection to prevent multiple inclusion with !include

'filename: a.puml

@startuml(id=selfcall)
A->A
@enduml

@startuml
    !include_many a.puml!selfcall
    !include_many a.puml!selfcall
@enduml
commented Mar 19, 2018 by inata (180 points)
Thanks a lot!

I've overlooked that while reading specification.
...