[Gmsh] save

Christophe Geuzaine cgeuzaine at ulg.ac.be
Wed Oct 22 21:17:56 CEST 2008


Vladimir Pavlov wrote:
> hello 2 all
> 
> 
> i hope that this should be not big prob.
> 
> when i open .stl file format in gmsh i would like that i can (after some 
> work) save the file (overwrite the file that was open - as standard save 
> option) with one click on some button
> 
> instead of
> 
> file > save as > name_of_the_file (the same name) > ok (replace) > ASCII 
> (format) > save all (ignore physical group)
> 
> is there an easy way that i can modify the code to implement such option
> ?
> 

Yes. Just add this in your option file (.gmsh-options) or in your .geo 
files or other scripts:

General.ConfirmOverwrite = 0;
Mesh.Format = 27; // STL format
Mesh.SaveAll = 1;

You can then just click on the "Save" button in the mesh module (or use 
Ctrl+Shift+s) to save the mesh in a single step.


(PS: Future versions will most probably change the "Mesh.Format" option 
so that it takes strings arguments instead of incomprehensible numerical 
values...)

> 
> thank you!
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine