🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

4 total messages Started by Helmut Giese Sat, 24 Oct 2026 15:55
Any examples using 'tudiagram'
#94
Author: Helmut Giese
Date: Sat, 24 Oct 2026 15:55
7 lines
1433 bytes
Hello out there,
looking for a tool to draw flowcharts I was pointed at 'tudiagram', a
package or rather a suite of packages in 'tclutils'.
I am somewhat overwhelmed and don't know where to start. A tutorial or
at least an example of its use could help ...
Any link will be greatly appreciated
Helmut
Re: Any examples using 'tudiagram'
#95
Author: greg
Date: Sat, 24 Oct 2026 18:06
47 lines
2480 bytes
Am 24.10.26 um 17:55 schrieb Helmut Giese:
> Hello out there,
> looking for a tool to draw flowcharts I was pointed at 'tudiagram', a
> package or rather a suite of packages in 'tclutils'.
> I am somewhat overwhelmed and don't know where to start. A tutorial or
> at least an example of its use could help ...
> Any link will be greatly appreciated
> Helmut

Hello Helmut,

# readme.md install
# tcl::tm::path list
# tcl::tm::path add  path/to/tclutils/lib/tm
# tclutils/examples/demo-tuflow.tcl
# documentation in
# tclutils/docs/tuflow.md and tudiagram.md

set here [file dirname [file normalize [info script]]]
package require tclutils::tuflow

set src {flowchart LR
     A[Start] --> B{Decision}
     B -->|yes| C[Done]
     B -->|no| A
}

::tclutils::tuflow::writeSvg $src [file join $here flow.svg]
::tclutils::tuflow::writePng $src [file join $here flow.png] -scale 2



-----------
The directory tclutils/lib/tm must show up in the output of 
tcl::tm::path list. Under it is tclutils/ with tuflow-0.2.tm, 
tudiagram-0.4.tm, and the other modules. If that directory is missing, 
add it with:


tcl::tm::path add C:/path/to/tclutils/lib/tm




best regards
Gregor
Re: Any examples using 'tudiagram'
#98
Author: Rich
Date: Sat, 24 Oct 2026 21:04
17 lines
1810 bytes
Helmut Giese <hgiese@ratiosoft.com> wrote:
> Hello out there,
> looking for a tool to draw flowcharts I was pointed at 'tudiagram', a
> package or rather a suite of packages in 'tclutils'.
> I am somewhat overwhelmed and don't know where to start. A tutorial or
> at least an example of its use could help ...
> Any link will be greatly appreciated
> Helmut

An often recommended package for flowcharts is Graphviz
https://en.wikipedia.org/wiki/Graphviz

Not a Tcl based app, but it can output Tk canvas commands to draw, in a 
canvas, the diagram described by the input language.

There are lots of examples available online for GraphViz showing how to 
draw different types of diagrams.
Re: Any examples using 'tudiagram'
#101
Author: Helmut Giese
Date: Sun, 25 Oct 2026 19:43
3 lines
1276 bytes
Hello Gregor and Rich,
thanks to both of you. Now I have some things to study.
Helmut
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads