How to create dashed-border rectangle in plantuml
Asked Answered
P

2

9

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

https://static.mcmap.net/file/mcmap/ZG-AbGLDKwfpKnMxcF_AZVLQamyA/OJCiN.png

Plotinus answered 6/7, 2021 at 21:48 Comment(0)
P
16

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

rectangle "Rectangle Label" as RectangleName #line.dashed

Live Demo

Plotinus answered 6/7, 2021 at 21:48 Comment(0)
E
2
@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

Ethelinda answered 19/4, 2022 at 13:33 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.