[ GiDlist ] file .bat
Posted: Fri Jul 13, 2001 3:51 pm
Hi to all,
I want that GiD executes a problem in a directory where I save my file, but
I cannot get it.
Suppose that I save a GiD database "wedge.gid" in a directory
c:\aldo\wedge, then GiD writes a directory "wedge.gid" here.
If I save also an input file (ctrl-x ctrl-c) for my solver as "wedge" in
directory c:\aldo\wedge, I have this situation in the directory c:\aldo\wedge:
.\wedge.gid
wedge
In problem customization I use these instructions in my batch file aldo.bat:
-----------------------------------------------------------------------------------
@echo off
rem set basename = %1
rem set directory = %2
rem set problemdirectory = %3
echo %1 %2 %3 input.txt
%2\myprogram %2\%1
-------------------------------------------------------------------------------------
I try also with %3\myprogram %3\%1. but it doesn't work.
The content of file input.txt (see the command echo, above) is:
--------------------------------------------------------
wedge e:\wedge.gid f:\PROBLEM.GID
--------------------------------------------------------
where the three strings should be:
%1 %2 %3
GiD 6.1.2 is installed in c:\Programmi\GidWin, the problem type is
installed in c:\Programmi\GidWin\PROBLEM.gid
I don't understand very well how GiD use these the parameters %1 %2 %3; it
seems different from the manual.
Thank you very much for any help.
Best regards
Aldo Ghisi
P.S.
My problem can be easily solved if I know the path of file "wedge" when I
executes
Files - Import\Export - Write calculation file
I thought it was %2 or %3, but GiD returns another string....
ALDO GHISI
Department of Structural Engineering
Politecnico di Milano
Piazza Leonardo da Vinci 32, 20133 Milano, Italy
Tel.: +39 02 2399 4218
Fax.: +39 02 2399 4220
E_mail: aldo.ghisi at polimi.it
I want that GiD executes a problem in a directory where I save my file, but
I cannot get it.
Suppose that I save a GiD database "wedge.gid" in a directory
c:\aldo\wedge, then GiD writes a directory "wedge.gid" here.
If I save also an input file (ctrl-x ctrl-c) for my solver as "wedge" in
directory c:\aldo\wedge, I have this situation in the directory c:\aldo\wedge:
.\wedge.gid
wedge
In problem customization I use these instructions in my batch file aldo.bat:
-----------------------------------------------------------------------------------
@echo off
rem set basename = %1
rem set directory = %2
rem set problemdirectory = %3
echo %1 %2 %3 input.txt
%2\myprogram %2\%1
-------------------------------------------------------------------------------------
I try also with %3\myprogram %3\%1. but it doesn't work.
The content of file input.txt (see the command echo, above) is:
--------------------------------------------------------
wedge e:\wedge.gid f:\PROBLEM.GID
--------------------------------------------------------
where the three strings should be:
%1 %2 %3
GiD 6.1.2 is installed in c:\Programmi\GidWin, the problem type is
installed in c:\Programmi\GidWin\PROBLEM.gid
I don't understand very well how GiD use these the parameters %1 %2 %3; it
seems different from the manual.
Thank you very much for any help.
Best regards
Aldo Ghisi
P.S.
My problem can be easily solved if I know the path of file "wedge" when I
executes
Files - Import\Export - Write calculation file
I thought it was %2 or %3, but GiD returns another string....
ALDO GHISI
Department of Structural Engineering
Politecnico di Milano
Piazza Leonardo da Vinci 32, 20133 Milano, Italy
Tel.: +39 02 2399 4218
Fax.: +39 02 2399 4220
E_mail: aldo.ghisi at polimi.it