Enrique,
Thank you, but how do I launch the calc.bat file from within GiD ?
(Sure I can do it from outside GiD but it isn't very user friendly)
I have created a problem_name.tcl file containing the following:
proc InitGIDProject { dir } {
CreateMenu "Flight" "PRE"
InsertMenuOption "Flight" "Calc 1" 0 "run_1" "PRE"
UpdateMenus
}
proc EndGIDProject {} {
}
Is there any way of launching the calc.bat or a console application
run_1.exe when I press the Calc 1 button under the Flight menu?
in the HTML manual InsertMenuOption is defined as:
InsertMenuOption {menu_name option_name position command prepost}
Creates a new option for a given menu in a given position (positions start
at 0). If it already exists an option in the given position, that option is
substituted by the new one.
* menu_name: name of the menu where you want to insert the new option.
* option_name: name of the new option you want to insert. If
option_name is "---", then , a separator line is inserted in the menu.
* position: position in the menu where the option has to be inserted.
Note that positions start at 0, and separator lines also count.
* command: is the command called when the menu option is selected.
* prepost: this argument can have the following values:
"PRE" to insert the option in the preprocess menus
"POST" to insert the option in the postprocess menus
or "PREPOST" to insert the option in the pre and postprocess menus
can anyone explain the usage of command?
Many thanks
Mark
-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 18 March 2002 15:16
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] postprocess calculation
You can create two *.bas template files in the problem type, and with the
second bas, write "on the air" the contents of a "calc.bat" file.
Then, with the standard 'problemtype'.bat, rename the 'problemname'-1.dat
to 'calc.bat'
and execute it:
contents of 'problemtype'.bat:
rename %2\%1-1.dat %2\calc.bat
%2\calc.bat %1 %2 %3
The contents of 'calc.bat' is created, for example, based on some general
data values.
Regards
Enrique Escolano
----- Original Message -----
From: "Mark Smith" mailto:mark.smith at linx.co.uk mark.smith at linx.co.uk
To: "Gidlist (E-mail)" mailto:gidlist at gatxan.cimne.upc.es
gidlist at gatxan.cimne.upc.es
Sent: Monday, March 18, 2002 12:47 PM
Subject: [GiDlist] postprocess calculation
GiD6.2.0d (Windows98)
Is there an easy way of having multiple different calculate options
available under a single problem type?
What I have in mind is the following:
I have a problem type and perform my calculation, but then I would like to
perform various postprocessing calculations depending on what I'm after,
using the results which have been written to the .flavia.res file. If I
do
this by selecting a new problem type it warns me that all data information
(materials,conditions,data) will be lost so this is not an option. I would
like to associate a different .win.bat file with the calculate button as
selected from an options list.
I hope I am making myself clear?
Thanks in advance.
Best regards
Mark
--------------------------------------------------------------------------
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
'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
----- Original Message -----
From: "Mark Smith" mark.smith at linx.co.uk
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, March 18, 2002 5:49 PM
Subject: RE: [GiDlist] postprocess calculation
Enrique,
Thank you, but how do I launch the calc.bat file from within GiD ?
(Sure I can do it from outside GiD but it isn't very user friendly)
I have created a problem_name.tcl file containing the following:
proc InitGIDProject { dir } {
CreateMenu "Flight" "PRE"
InsertMenuOption "Flight" "Calc 1" 0 "run_1" "PRE"
UpdateMenus
}
proc EndGIDProject {} {
}
Is there any way of launching the calc.bat or a console application
run_1.exe when I press the Calc 1 button under the Flight menu?
in the HTML manual InsertMenuOption is defined as:
InsertMenuOption {menu_name option_name position command prepost}
Creates a new option for a given menu in a given position (positions start
at 0). If it already exists an option in the given position, that option is
substituted by the new one.
* menu_name: name of the menu where you want to insert the new option.
* option_name: name of the new option you want to insert. If
option_name is "---", then , a separator line is inserted in the menu.
* position: position in the menu where the option has to be inserted.
Note that positions start at 0, and separator lines also count.
* command: is the command called when the menu option is selected.
* prepost: this argument can have the following values:
"PRE" to insert the option in the preprocess menus
"POST" to insert the option in the postprocess menus
or "PREPOST" to insert the option in the pre and postprocess menus
can anyone explain the usage of command?
Many thanks
Mark
-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 18 March 2002 15:16
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] postprocess calculation
You can create two *.bas template files in the problem type, and with the
second bas, write "on the air" the contents of a "calc.bat" file.
Then, with the standard 'problemtype'.bat, rename the 'problemname'-1.dat
to 'calc.bat'
and execute it:
contents of 'problemtype'.bat:
rename %2\%1-1.dat %2\calc.bat
%2\calc.bat %1 %2 %3
The contents of 'calc.bat' is created, for example, based on some general
data values.
Regards
Enrique Escolano
----- Original Message -----
From: "Mark Smith" mailto:mark.smith at linx.co.uk mark.smith at linx.co.uk
To: "Gidlist (E-mail)" mailto:gidlist at gatxan.cimne.upc.es
gidlist at gatxan.cimne.upc.es
Sent: Monday, March 18, 2002 12:47 PM
Subject: [GiDlist] postprocess calculation
GiD6.2.0d (Windows98)
Is there an easy way of having multiple different calculate options
available under a single problem type?
What I have in mind is the following:
I have a problem type and perform my calculation, but then I would like to
perform various postprocessing calculations depending on what I'm after,
using the results which have been written to the .flavia.res file. If I
do
this by selecting a new problem type it warns me that all data information
(materials,conditions,data) will be lost so this is not an option. I would
like to associate a different .win.bat file with the calculate button as
selected from an options list.
I hope I am making myself clear?
Thanks in advance.
Best regards
Mark
--------------------------------------------------------------------------
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/20020318/18dd92e7/attachment.htm
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
----- Original Message -----
From: "Mark Smith" mark.smith at linx.co.uk
To: gidlist at gatxan.cimne.upc.es
Sent: Monday, March 18, 2002 5:49 PM
Subject: RE: [GiDlist] postprocess calculation
Enrique,
Thank you, but how do I launch the calc.bat file from within GiD ?
(Sure I can do it from outside GiD but it isn't very user friendly)
I have created a problem_name.tcl file containing the following:
proc InitGIDProject { dir } {
CreateMenu "Flight" "PRE"
InsertMenuOption "Flight" "Calc 1" 0 "run_1" "PRE"
UpdateMenus
}
proc EndGIDProject {} {
}
Is there any way of launching the calc.bat or a console application
run_1.exe when I press the Calc 1 button under the Flight menu?
in the HTML manual InsertMenuOption is defined as:
InsertMenuOption {menu_name option_name position command prepost}
Creates a new option for a given menu in a given position (positions start
at 0). If it already exists an option in the given position, that option is
substituted by the new one.
* menu_name: name of the menu where you want to insert the new option.
* option_name: name of the new option you want to insert. If
option_name is "---", then , a separator line is inserted in the menu.
* position: position in the menu where the option has to be inserted.
Note that positions start at 0, and separator lines also count.
* command: is the command called when the menu option is selected.
* prepost: this argument can have the following values:
"PRE" to insert the option in the preprocess menus
"POST" to insert the option in the postprocess menus
or "PREPOST" to insert the option in the pre and postprocess menus
can anyone explain the usage of command?
Many thanks
Mark
-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 18 March 2002 15:16
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] postprocess calculation
You can create two *.bas template files in the problem type, and with the
second bas, write "on the air" the contents of a "calc.bat" file.
Then, with the standard 'problemtype'.bat, rename the 'problemname'-1.dat
to 'calc.bat'
and execute it:
contents of 'problemtype'.bat:
rename %2\%1-1.dat %2\calc.bat
%2\calc.bat %1 %2 %3
The contents of 'calc.bat' is created, for example, based on some general
data values.
Regards
Enrique Escolano
----- Original Message -----
From: "Mark Smith" mailto:mark.smith at linx.co.uk mark.smith at linx.co.uk
To: "Gidlist (E-mail)" mailto:gidlist at gatxan.cimne.upc.es
gidlist at gatxan.cimne.upc.es
Sent: Monday, March 18, 2002 12:47 PM
Subject: [GiDlist] postprocess calculation
GiD6.2.0d (Windows98)
Is there an easy way of having multiple different calculate options
available under a single problem type?
What I have in mind is the following:
I have a problem type and perform my calculation, but then I would like to
perform various postprocessing calculations depending on what I'm after,
using the results which have been written to the .flavia.res file. If I
do
this by selecting a new problem type it warns me that all data information
(materials,conditions,data) will be lost so this is not an option. I would
like to associate a different .win.bat file with the calculate button as
selected from an options list.
I hope I am making myself clear?
Thanks in advance.
Best regards
Mark
--------------------------------------------------------------------------
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/20020318/18dd92e7/attachment.htm