[vtkusers] Simple Question about TCL

Christian Poecher poecher at icom-consulting.de
Mon Oct 29 08:39:53 EST 2001


"lappadj at libero.it" schrieb:

> i have installed the tcl tools,but i don't know how to set the
> directory in the script to read the file.For example
> 
> catch {load vtktcl}
> if { [catch {set VTK_TCL $env(VTK_TCL)}] != 0} { set VTK_TCL
> "../../examplesTcl" }
> if { [catch {set VTK_DATA $env(VTK_DATA)}] != 0} { set VTK_DATA
> "../../../vtkdata" }

It's better to set enviroment variables under you OS. That way all
examples will run without changing the sources. If you are using Windows
you may do this by opening "System
Preferences"->"System"->"LastRightTab:-)"->"Enviroment Variables". Add a
new user-variable, call it VTK_DATA and set it to
"C:\Programs\vtk31\vtkdata" or whereever you installed your vtk to. Do
the same for VTK_TCL.
 
> i don't know how to modify this path in tcl script,wich editor i must
> use?I normally work in Visual C++.

You may use every text editor you like. I'd recommend Ultraedit, if you
run Windows.

chris

-- 
________________________________________________________________________
Christian Poecher                      mailto:poecher at icom-consulting.de
ICOM GmbH   					Phone: +49 241 9367-1554
Schloss-Rahe-Str. 15, 52072 Aachen, Germany     Fax  : +49 241 9367-1589
________________________________________________________________________



More information about the vtkusers mailing list