Animate or generate partial sequence diagrams for PowerPoint

0 votes
asked Oct 17, 2018 in Question / help by Kenny
I have a rather large sequence diagram that I want to include in a PowerPoint presentation.  Instead of having the entire diagram show up at once, I'd like to reveal sections of the diagram as I talk about them.  I tried doing this manually, but the intermediate diagrams didn't always have the same size/layout as the final diagram.

Is there a syntax or tool that would generate diagrams in this fashion?

1 Answer

0 votes
answered Oct 17, 2018 by plantuml (294,960 points)

You can use hide/show to hide some part of your diagram (see http://forum.plantuml.net/7337/classes-then-show-only-classes-bearing-given-class-diagram )

For example, you can have :

@startuml
class Car

Driver - Car : drives >
Car *- Wheel : have 4 >
Car -- Person : < owns

hide *
show Car
show Person
@enduml

http://www.plantuml.com/plantuml/uml/BOqx2WCn34JxESNK2-vIXH0MaWEaIorYWHOS6wJzN3zss4xlQPYPOnLVjs_1fqW47-B0qvTTdMaGhym3WtSCd1BVfbgwDzcLbzEdn9TwjDeVDxQZ1c1BLau8QyU_U1nd2fYrvhxx0m00

If you change hide and show statement, you show part of the diagram.

It's even possible to use tag to group class together:

@startuml
class Car $material
class Wheel $material
class Driver $human
class Person $human

Driver - Car : drives >
Car *- Wheel : have 4 >
Car -- Person : < owns

hide *
show $human
@enduml

http://www.plantuml.com/plantuml/uml/PSqz2W8n4CNnVaxn2gk5T5P1P44FO6Szc844yW6PPFVwxafIMSwFntzMRLnRJv4-aLNnu8fBuYOryBIt5ub_-gnXasFiU-8yx2LLInu6eh4nlwo5Eq_5dSvpCIDiuNaJN8SRCpCMDvGzAv4FJh2G-hBFXwjarrFy0W00

It this what you are looking for ?

And of course you should use preprocessing option (!include) to avoid duplication for your slides.

commented Oct 17, 2018 by anonymous
Unfortunately hide only works for class diagrams, not sequence diagrams right?  I need this specifically for sequence diagrams.
commented Oct 17, 2018 by plantuml (294,960 points)
Yes, it currently only works for class and component diagrams, not for sequence diagram.
However, implementing this for sequence diagram should not be very difficult.
But you should specify precisely what you wish to hide. Is it just participant ? Or some messages ? Or Group ?
...