Hello Pete,

I'm using Graphviz on my PC (http://www.graphviz.org/) to do this.

- I built a quick-and-dirty EXEC wich reads a pipeline and create a "dot" file ("dot" is the Graphviz format).
- Then, I send the dot file to my PC with FileZilla
- Then I create a png image of the pipeline using the "dot" command of Graphviz (dot -Tpng inputFile.dot -o outputFile.png)

For example, with a pipeline like this one :
"pipe (endchar %)",
"  < FNFILE FTFILE",
"| P: pick 1.1 == /$/",
"| count lines",
"| var nbLinesFile",
"%",
"  P:",
"| count lines",
"| var nbGoodLines"

... the graphviz file on the PC is the following one :
digraph g {
STAGE_1_1 [label = "< FNFILE FTFILE"];
STAGE_P [label = "P: pick 1.1 == /$/"];
STAGE_1_2 [label = "count lines"];
STAGE_1_1 -> STAGE_P [color=red];
STAGE_1_3 [label = "var nbLinesFile"];
STAGE_P -> STAGE_1_2 [color=red];
STAGE_1_2 -> STAGE_1_3 [color=red];
STAGE_P;
STAGE_2_1 [label = "count lines"];
STAGE_2_2 [label = "var nbGoodLines"];
STAGE_P -> STAGE_2_1 [color=blue];
STAGE_2_1 -> STAGE_2_2 [color=blue];
}

You can install Graphviz and run the dot command on my file to see the result for yourself.

If you can't built a "pipe to dot" program easily, then :
- you can email me some of your pipelines so I can create the corresponding png file - or I can send you my program, but I've got to modify it first, at least to make it less French (variables, commentaries, pipe separator) ;-) (but the program would still be ugly ^^)

Michaël


-----Message d'origine-----
De : Peter Kiesel <[email protected]>
Envoyé : 02/08/2011 01:06
À : [email protected] <[email protected]>
Cc :
Objet : Looking for a Pipe drawing/diagramming tool... ISTHERE one out there?
Am looking for a tool that will draw written pipes.  Anyone aware of one?

In looking at some Pipes code I've inherited, I'd like to 'get the big
picture'.

Thanks in advance.

Sincerely,

Pete Kiesel
585-784-0402
[email protected]

Reply via email to