[GiDlist] BLT trouble

Moderator: GiD Team

Post Reply
Saunders, Kristopher

[GiDlist] BLT trouble

Post by Saunders, Kristopher »

Hi everyone

Can anyone tell me what alterations I need to make to my tcl scripts so that
they will work with the tcl extension BLT? I have installed the BLT
executables within the same directory as the original tclsh84.exe
(problemtypes/tcl/bin), but for some reason I have a stand-alone tcl script
that will no longer execute when called.

The stand-alone script is executed from within another script, and has the
following three lines at the start of the file:

#!/bin/sh
# -*- mode: tcl -*- \
exec tclsh "$0" ${1+"$@"}

And as far as I can work out the lines of tcl code that call the script are:


Set prg "[list [file join $ControlBoxDir tcl bin tclsh84s.exe]]
[list [file join $ControlBoxDir $RunInfo(control,name)]] $_args"
set result [catch {
runExe run $prg -blocking false -callback
"::CFDControl::ControlBoxCb %m"
} RunInfo(control,pid)]

Does anyone know where I am going wrong? I am still very much a beginner
with tcl and so I would be extremely greatful for any help, no matter how
basic it might seem!

Kindest regards,
Kris Saunders


This email and any attached files are confidential and copyright protected.
If you are not the addressee, any dissemination of this communication is
strictly prohibited. Unless otherwise expressly agreed in writing, nothing
stated in this communication shall be legally binding.
Ramon Ribó

[GiDlist] BLT trouble

Post by Ramon Ribó »

Hello,

You are trying to open an additional process with TCL and BLT. This
is normally not the way to proceed. GiD has an internal TCL-TK
interpreter
that should deal with your TCL code. If you need BLT, you can deal with
it by using from GiD something like:

- package require BLT or
- load BLTlib??.dll (in UNIX, something like: libBLT??.so)

Note that the GiD TCL version and the BLT version should be
compatible.

Check the package and load man pages and check the BLT help for more
details.

Regards,

--
Compass Ing. y Sistemas Dr. Ramon Ribo
http://www.compassis.com ramsan at compassis.com
c/ Manuel Girona, 61 bajos tel. +34 93 204 10 82
08034 Barcelona, Spain fax. +34 93 204 19 09

-----Mensaje original-----
De: gidlist-admin at gatxan.cimne.upc.es
[mailto:gidlist-admin at gatxan.cimne.upc.es] En nombre de Saunders,
Kristopher
Enviado el: viernes, 20 de junio de 2003 16:32
Para: 'gidlist at gid.cimne.upc.es'
Asunto: [GiDlist] BLT trouble


Hi everyone

Can anyone tell me what alterations I need to make to my tcl scripts so
that they will work with the tcl extension BLT? I have installed the BLT
executables within the same directory as the original tclsh84.exe
(problemtypes/tcl/bin), but for some reason I have a stand-alone tcl
script that will no longer execute when called.

The stand-alone script is executed from within another script, and has
the following three lines at the start of the file:

#!/bin/sh
# -*- mode: tcl -*- \
exec tclsh "$0" ${1+"$@"}

And as far as I can work out the lines of tcl code that call the script
are:


Set prg "[list [file join $ControlBoxDir tcl bin tclsh84s.exe]]
[list [file join $ControlBoxDir $RunInfo(control,name)]] $_args"
set result [catch {
runExe run $prg -blocking false -callback
"::CFDControl::ControlBoxCb %m"
} RunInfo(control,pid)]

Does anyone know where I am going wrong? I am still very much a beginner
with tcl and so I would be extremely greatful for any help, no matter
how basic it might seem!

Kindest regards,
Kris Saunders


This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly agreed
in writing, nothing stated in this communication shall be legally
binding.


_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
Post Reply