Loi Nguyen Huynh
Loi Nguyen Huynh

Reputation: 9958

How to create dashed-border rectangle in plantuml

To create a rectangle, I can simply rectangle "Rectangle Label" as RectangleName, but how to make its border dashed? like below?

https://i.sstatic.net/OJCiN.png

Upvotes: 9

Views: 13714

Answers (2)

j3ffyang
j3ffyang

Reputation: 2470

@startuml
agent a
cloud c #pink;line:red;line.bold;text:red [
c
cloud description
]
file  f #palegreen;line:green;line.dashed;text:green {
[c1]
[c2]
}
frame frame {
node  n #aliceblue;line:blue;line.dotted;text:blue
}
@enduml

Reference > https://plantuml.com/deployment-diagram

Upvotes: 2

Loi Nguyen Huynh
Loi Nguyen Huynh

Reputation: 9958

Add #line.dashed at the end of the statement:

rectangle "Rectangle Label" as RectangleName #line.dashed

Live Demo

Upvotes: 16

Related Questions