.grid and .xml files without clicking CALCULATE

Hello,

I would like to know how to obtain the “.grid” and “.xml” files without having to click on CALCULATE.
What I would like to do is run GiD externally, so that GiD interprets a Tcl script that changes the geometry, and have a a variety of “.grid” and “.xml” files for different geometries. Afterwards I will submit these geometries to my executable to solve for the fields.

Thanks,
Eduard

You can export the calculation file without starting the calculation (running the .bat file of the problemtype).

Mescape Files WriteCalcFile <your_filename>

Note: The calculation file/s has .dat extension, not .grid or .xml (each .bas template generate a .dat calculation file)

That is perfect!

Thanks,
Eduard