Win98 GiD6.2.0d
I have put the .exe file in the problem.gid directory (where the .tcl file
is) and yet when I click on the menu entry nothing happens do I need Tcl/Tk
installed or is an interpreter built into GiD?
Regards
Mark
-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 18 March 2002 21:57
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] postprocess calculation
'problemtype'.bat automatically launch calc.bat with the red line
rename %2\%1-1.dat %2\calc.bat
%2\calc.bat %1 %2 %3
You can also run another program (e.g. run_1.exe) directly from tcl with
Create this procedure (called by pressing your menu entry)
proc run_1 { } {
exec run_1.exe
# add & to execute the process in background and continue
#exec run_1.exe &
}
See tcl documentation, tutorials, etc at http://tcl.activestate.com
http://tcl.activestate.com
--------------------------------------------------------------------------
Linx Printing Technologies plc
+44 (0)1480302100
http://www.linx.co.uk/
This e-mail may contain privileged/confidential information and may be
read, copied and used only by the intended recipient. If you have received
it in error, please contact the sender by return e-mail or by
telephoning +44 (0)1480 302100.
Please then delete the e-mail and do not disclose its contents to any
person.
Any information in this message that does not relate to the official
business of Linx shall be understood as neither given nor endorsed by Linx.
We reserve the right to monitor all e-mail communications through our
internal and external networks.
--------------------------------------------------------------------------
[GiDlist] postprocess calculation
Moderator: GiD Team
[GiDlist] postprocess calculation
If run_1.exe is located inside the problemtype directory:
Save the parameter dir of InitGIDProjec in a global variable:e.g. VarAuxPriv(DirProblemType) to use later this path.
You can use WarnWinText "text" to debug your tcl code
proc InitGIDProject { dir } {
global VarAuxPriv
set VarAuxPriv(DirProblemType) $dir
}
proc run_1 { } {
#this line WarnWinText must be commented
WarnWinText "EXECUTE: $VarAuxPriv(DirProblemType)/run_1.exe"
exec "$VarAuxPriv(DirProblemType)/run_1.exe"
}
----- Original Message -----
From: "Mark Smith" mark.smith at linx.co.uk
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, March 19, 2002 2:08 PM
Subject: RE: [GiDlist] postprocess calculation
Win98 GiD6.2.0d
I have put the .exe file in the problem.gid directory (where the .tcl file
is) and yet when I click on the menu entry nothing happens do I need Tcl/Tk
installed or is an interpreter built into GiD?
Regards
Mark
-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 18 March 2002 21:57
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] postprocess calculation
'problemtype'.bat automatically launch calc.bat with the red line
rename %2\%1-1.dat %2\calc.bat
%2\calc.bat %1 %2 %3
You can also run another program (e.g. run_1.exe) directly from tcl with
Create this procedure (called by pressing your menu entry)
proc run_1 { } {
exec run_1.exe
# add & to execute the process in background and continue
#exec run_1.exe &
}
See tcl documentation, tutorials, etc at http://tcl.activestate.com
http://tcl.activestate.com
--------------------------------------------------------------------------
Linx Printing Technologies plc
+44 (0)1480302100
http://www.linx.co.uk/
This e-mail may contain privileged/confidential information and may be
read, copied and used only by the intended recipient. If you have received
it in error, please contact the sender by return e-mail or by
telephoning +44 (0)1480 302100.
Please then delete the e-mail and do not disclose its contents to any
person.
Any information in this message that does not relate to the official
business of Linx shall be understood as neither given nor endorsed by Linx.
We reserve the right to monitor all e-mail communications through our
internal and external networks.
--------------------------------------------------------------------------
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020319/67863775/attachment.htm
Save the parameter dir of InitGIDProjec in a global variable:e.g. VarAuxPriv(DirProblemType) to use later this path.
You can use WarnWinText "text" to debug your tcl code
proc InitGIDProject { dir } {
global VarAuxPriv
set VarAuxPriv(DirProblemType) $dir
}
proc run_1 { } {
#this line WarnWinText must be commented
WarnWinText "EXECUTE: $VarAuxPriv(DirProblemType)/run_1.exe"
exec "$VarAuxPriv(DirProblemType)/run_1.exe"
}
----- Original Message -----
From: "Mark Smith" mark.smith at linx.co.uk
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, March 19, 2002 2:08 PM
Subject: RE: [GiDlist] postprocess calculation
Win98 GiD6.2.0d
I have put the .exe file in the problem.gid directory (where the .tcl file
is) and yet when I click on the menu entry nothing happens do I need Tcl/Tk
installed or is an interpreter built into GiD?
Regards
Mark
-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 18 March 2002 21:57
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] postprocess calculation
'problemtype'.bat automatically launch calc.bat with the red line
rename %2\%1-1.dat %2\calc.bat
%2\calc.bat %1 %2 %3
You can also run another program (e.g. run_1.exe) directly from tcl with
Create this procedure (called by pressing your menu entry)
proc run_1 { } {
exec run_1.exe
# add & to execute the process in background and continue
#exec run_1.exe &
}
See tcl documentation, tutorials, etc at http://tcl.activestate.com
http://tcl.activestate.com
--------------------------------------------------------------------------
Linx Printing Technologies plc
+44 (0)1480302100
http://www.linx.co.uk/
This e-mail may contain privileged/confidential information and may be
read, copied and used only by the intended recipient. If you have received
it in error, please contact the sender by return e-mail or by
telephoning +44 (0)1480 302100.
Please then delete the e-mail and do not disclose its contents to any
person.
Any information in this message that does not relate to the official
business of Linx shall be understood as neither given nor endorsed by Linx.
We reserve the right to monitor all e-mail communications through our
internal and external networks.
--------------------------------------------------------------------------
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020319/67863775/attachment.htm