🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #95

Re: Any examples using 'tudiagram'

#95
From: 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
Technical Details
Message-ID: <11bis2o$2umfj$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <tpkpdldrir40m1oleko3ldul6ptc0mr1fg@4ax.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: greg <gregor.ebbing@gmx.de>
Newsgroups: comp.lang.tcl
Subject: Re: Any examples using 'tudiagram'
Date: Sat, 24 Oct 2026 20:06:15 +0200
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <11bis2o$2umfj$1@dont-email.me>
References: <tpkpdldrir40m1oleko3ldul6ptc0mr1fg@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 24 Oct 2026 18:06:17 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3103219"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18iagEnKKt00vFoDwR0d+ZYqRd1BkpMNzE="; posting-host="b2364d2ab78a6fbfca7ed4c9802402a9"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:WUyFOIkCeiGxJn4VHwlE24jsAZo= sha256:jjU8EZ/ObunQuu/jDJMt6iLBDosquraKUiXZUEsQJAY=
	sha1:B+xSj6EXiWysbHXzXaJwXqabgWY= sha256:GdD9uMomLMgh2C8fJ1A4ogm6b8iEv8Cn7jOCUJYs8Cw=
Content-Language: de-DE
In-Reply-To: <tpkpdldrir40m1oleko3ldul6ptc0mr1fg@4ax.com>