21

I'm looking for an diagram tool for producing diagrams from text. I only really need sequence and state type diagrams for now, but I'm curious as to what people would recommend? I need something which is standalone, not a web based tool that works on Linux, OSX and Windows.

Jon
  • 55,763
  • 30
  • 120
  • 149

5 Answers5

19

I'm not positive what you mean by "producing diagrams from text", but if you mean a tool where diagrams are specified by a text file, Graphviz is good. If you mean something that literally converts ascii art like

+--------+   +-------+    +-------+
|        | --+ ditaa +--> |       |
|  Text  |   +-------+    |diagram|
|Document|   |!magic!|    |       |
|     {d}|   |       |    |       |
+---+----+   +-------+    +-------+
    :                         ^
    |       Lots of work      |
    +-------------------------+

to a graphic:

enter image description here

You can try ditaa (that ascii art is from their website, so it's a good example of the input format it expects)

Ross Rogers
  • 21,332
  • 23
  • 99
  • 156
Michael Mrozek
  • 149,906
  • 24
  • 156
  • 163
13

Look at PlantUML, LaTeX+MetaUML, sdedit, TextUML, yUML, ... There is a plenty of quite good tools.

Gabriel Ščerbák
  • 16,864
  • 8
  • 33
  • 50
  • 1
    PlantUML looks pretty good, thanks... – Jon Apr 22 '10 at 22:37
  • I'm the author of the **PlantUML Gizmo**, which is a free add-on for [Google Docs](https://sites.google.com/site/plantumlgizmo) or [Microsoft Word](https://code.google.com/p/plantuml-word-add-in-vsto/). It allows using PlantUML in those documents. – Fuhrmanator Aug 22 '14 at 00:09
11

I recommend TextDiagram http://weidagang.github.com/text-diagram/. It creates UML sequence diagram from pure text.

Example input

object April Todd Monad
note left of April: Lunch is ready
April->Todd: Todd, what are you doing?
note right of Todd: Programming @_@
Todd->April: Well, I'm programming.
April->Monad: And you?
Monad->April: I'm reading book.
April->Monad: Good boy!
note right of Monad: Smile ^_^

produces:

               +-------+                       +-------+               +-------+
               | April |                       | Todd  |               | Monad |
               +-------+                       +-------+               +-------+
-----------------\ |                               |                       |
| Lunch is ready |-|                               |                       |
------------------ |                               |                       |
                   |                               |                       |
                   | Todd, what are you doing?     |                       |
                   |------------------------------>|                       |
                   |                               | ------------------\   |
                   |                               |-| Programming @_@ |   |
                   |                               | -------------------   |
                   |                               |                       |
                   |        Well, I'm programming. |                       |
                   |<------------------------------|                       |
                   |                               |                       |
                   | And you?                      |                       |
                   |------------------------------------------------------>|
                   |                               |                       |
                   |                               |     I'm reading book. |
                   |<------------------------------------------------------|
                   |                               |                       |
                   | Good boy!                     |                       |
                   |------------------------------------------------------>|
                   |                               |                       | ------------\
                   |                               |                       |-| Smile ^_^ |
                   |                               |                       | -------------
                   |                               |                       |
Ross Rogers
  • 21,332
  • 23
  • 99
  • 156
Dagang
  • 19,188
  • 24
  • 70
  • 109
8

I'd recomment PlantUML. It is an excellent tools that lets you draw all kinds of UML diagrams from simple textual specification.

Barun
  • 2,274
  • 29
  • 34
0

EventStudio supports generation of sequence diagrams and collaboration diagrams from text input.

Sandeep
  • 618
  • 5
  • 12