Hi
Thank you for a very useful piece of software!!
I would really like to repeat a piece of components so I am trying to use !define for the identifiers. It is working fine for the actual components, but not for the relations
Eg. a main file like this
@startuml
!define NAME Class1
!include sub.puml
!define NAME Class2
!includesub sub.puml!SUB
@enduml
and then a sub.puml with
@startuml
!ifndef PREFIX
!define PREFIX Class1
!endif
!startsub SUB
package PREFIX {
'This will not replace the variable PREFIX
'class "Class1" as PREFIX_1 {
' This works
class "Class2" as PREFIX-1 {
property1
}
class PREFIX-2 {
property2
}
}
' This will not replace the variable PREFIX
'PREFIX_1 --> PREFIX_2 : Relation for PREFIX
' This gives syntax error
'PREFIX-1 --> PREFIX-2 : Relation for PREFIX
!endsub
@enduml