Search code examples
graphicsdiagramsequence-diagramtiming-diagram

Drawing Sequence Diagrams


I'm looking for an easy language/command line utility to draw sequence and timing diagrams (could be 2 different tools). I've already found Mscgen for sequence diagram drawing and looks pretty good, but I'm studying other possibilities.

Thanks


Solution

  • The best software I've found and I usually use to make sequence diagrams from plain text is SDEdit. It's a Java tool, so you can use it in any operating system. And it's free software!

    With this tool, you write the following:

    #![SD ticket order]
    ext:External[pe]
    user:Actor
    /order:Order[x]
    db:TicketDB
    acc:Account
    
    ext:user.order a ticket!
    user:order.new()
    order:return=db.reserve(date,count)
    db:return=acc.debit(cost)
    acc:return=db.bonus(date,count)
    

    to obtain this:

    SDEdit example