This seems really excessive and an overkill. Also it is difficult to track which parameters are where. Is there a more intuitive way to simply modify a material on tcl?
I have a question that goes along the same lines. What if I need to generate a TCL list containing the names of all the materials that currently exist in my model? The reason is that I would like to loop through each material, assign it to the same volume, regenerate the mesh and output calc files. But this is for maybe 10 different materials?
to have the list of all defined materials the command is simply
GiD_Info materials
If do you want the same mesh, and change only the values of some fields of the material (e.g. all your 10 materials having the same question fields), then is is cheaper to simply modify for each loop the value of the current used material, without the need of assign a new material and re-mesh.