Including same sequence diagram two times displays it once.

0 votes
asked Mar 15 in Bug by inata (250 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 by plantuml (176,140 points)
selected Mar 19 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 by inata (250 points)
Thanks a lot!

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