Win98 GiD6.2.0d
Sorry to be a nuisance but my code (red):
proc InitGIDProject { dir } {
global VarAuxPriv
set VarAuxPriv(DirProblemType) $dir
CreateMenu "Flight" "PRE"
InsertMenuOption "Flight" "Calc 1" 0 "run_1" "PRE"
RemoveMenuOption "Help" "Tutorials" "PREPOST"
RemoveMenuOption "Help" "What is new ..." "PREPOST"
RemoveMenuOption "Help" "FAQ" "PREPOST"
InsertMenuOption "Help" "Help GiDBeM" 1 {HelpWindow "CUSTOM_HELP"
"E_BeM2.gid"} "PREPOST"
UpdateMenus
}
proc run_1 { } {
WarnWinText "EXECUTE: $VarAuxPriv(DirProblemType)/makemat.exe"
exec "$VarAuxPriv(DirProblemType)/makemat.exe"
}
proc EndGIDProject {} {
}
-------------does nothing when I press the Calc 1 button under the Flight
menu? No error messages, nothing?
The executable makemat.exe is in the problemtype directory and writes a file
into this directory.
Is there a list of all the GiD functions e.g. GiDVersionCmp and their
usage anywhere?
Thanks. Mark
-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 19 March 2002 18:08
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [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"
}
--------------------------------------------------------------------------
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