Wednesday 15 March 2023

PlantUML: Enable strict uml while generating the diagram

'skinparam style strictuml' command enable the diagrams to be generacted as per strict UML norms.

 

notStrictUML.txt

@startuml

sys1 -> sys2: M1
sys1 <- sys2: M2
sys1 -> sys2: M3
sys1 <- sys2: M4
sys1 -> sys2: M5

@enduml

 

Above snippet generate below diagram.

 


 

Let’s enable string uml rules.

 

strictUML.txt

@startuml

skinparam style strictuml

sys1 -> sys2: M1
sys1 <- sys2: M2
sys1 -> sys2: M3
sys1 <- sys2: M4
sys1 -> sys2: M5

@enduml

 

Above snippet generate below diagram.

 

 


As you see the arrow style in strict uml, it draw a triangle instead of sharp arrowheads.

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment