Hello A.,
If you have only several @startuml/@enduml (no other diagram type), you could add on the beginning of the file, for a first diagram, this definition:
@startuml
'Change only this value depending of the number of @startuml/@enduml on the full file
!$max=3
!$i=1
label l [
!while $i < $max+1
{{
!include %filename()!$i
}}
!$i = $i +1
!endwhile
]
@enduml
Here is a full example, for a file named "filename.pu":
@startuml
'Change only this value depending of the number of @startuml/@enduml
!$max=3
!$i=1
label l [
!while $i < $max+1
{{
!include %filename()!$i
}}
!$i = $i +1
!endwhile
]
@enduml
@startuml
title AAA
a -> b
@enduml
@startuml
title BBB
[c]
@enduml
@startuml
title CCC
[A] lasts 4 days
then [B] lasts 2 days
@enduml
Then you observe the expected result: all diagrams of the file on the first output image (on the first image named 'finame.png' ).
If that can help,
Regards,
Th.