Hello,
I'll try to clarify your question:
Once the model is prepared, GiD offers basically two methods to deal
with the analysis.
1.- if you use "Files - Import\Export - Write calculation file", GiD
will write the analysis file to the location that you choose in the
interactive browser. This way, the .bat file is not used and the
analysis program must be executed manually by the user.
2.- If you use 'Calculate-Calculate' GiD writes automatically the
analysis file as MODEL.gid\MODEL.dat and executes automatically
the analysis program. The way to call the analysis program is defined
in the MODEL.bat or MODEL.unix.bat or MODEL.win.bat files.
If you want to create the .bat file (that defines the way to call the
analysis
program), you can access to the following parameters:
1.- %1 (Name of the model without the path and the leading .gid)
EXAMPLE: MODEL
2.- %2 (Directory of the model)
EXAMPLE: c:\my projects\wonderful GiD\MODEL.gid
3.- %3 (Problem type directory)
EXAMPLE: c:\Program Files\GiD\Problemtypes\MYPROBLEMTYPE.gid
Note that in UNIX things are slightly different.
Hope it helps,
--
Compass Ing. y Sistemas Dr. Ramon Ribó
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:
owner-gid at gatxan.cimne.upc.es
[mailto:
owner-gid at gatxan.cimne.upc.es]En nombre de Aldo Ghisi
Enviado el: martes, 17 de julio de 2001 14:07
Para:
gidlist at gatxan.cimne.upc.es
Asunto: [ GiDlist ] file .bat (more...)
Hi,
thank you for your previous answer, but I need a more detailed one.
I want know, if it is possible, the path of the file that I obtain with
Files - Import\Export - Write calculation file
for insert it in the file .bat
It's different from %2, because %2 returns the path to the .gid directory
of my problem.
I could put my input file anywhere in my directory tree, not only in the
.gid directory.
Thank you and regards.
Aldo Ghisi