Re: Create new attributes

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Mon, 30 Dec 1996 16:58:14 +0100

buskus@kickapoo.sownmc.state.wi.us said:

Stan> I'm using tkined1.4.5 and would like to customize it a
Stan> little. Specifically, in addition to name and address I would
Stan> like tkined to create a new attribute (community) whenever
Stan> someone creates a new node from the palette. I poked around
Stan> the tkined library but couldn't find anything. Does anyone
Stan> know where I can make the changes.

Take a look at tkined/library/Tool.tcl proc Tool__NodeDone. This is
the place where a new NODE object is created. Adding a line like

$node attribute community public

should bring you close to what you want.
Juergen

-- 
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)