<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    Thanks Goerdie for your reply. I tried your idea. Even though I had
    gone through all the option parameters, it seemed I had skipped that
    one. Anyway, it partially works: some general options are saved in
    the "OptionFileName" and some others in "SessionFileName".
    Unfortunately, it only saves a very small number of options. I
    thought it was only the "modified options" (since you can change
    that in a dialog box when you manually save options) but it's not
    even that. In particular, the camera view (General.RotationX/Y,
    ScaleX/Y/Z, TranslationX/Y, Trackball), and Graphics windows and
    clipping planes are not saved. Any idea how to save all the options?
    <br>
    <br>
    Thanks again,<br>
    <div class="moz-signature">
      <title>Samtech Signature</title>
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div align="left">
        <font size="3" face="Arial"> Christophe<br>
          <br>
           <a
href="addbook:add?action=add?vcard=begin%3Avcard%0D%0Afn%3AChristophe%20Henrard%0D%0An%3AHenrard%3BChristophe%0D%0Aorg%3ASamtech%20s.a.%0D%0Aadr%3Bquoted-printable%3A%3B%3BRue%20des%20Chasseurs%20Ardenais%2C%208%3BLi%3DC3%3DA8ge%3B%3B4031%3BBelgium%0D%0Aemail%3Binternet%3AChristophe.Henrard%40samtech.com%0D%0Atitle%3AR%26D%20Engineer%0D%0Atel%3Bwork%3A+32%280%294.361.69.69%0D%0Atel%3Bfax%3A+32%280%294.361.69.80%0D%0Aurl%3Ahttp%3A//www.samtech.com%0D%0Aversion%3A2.1%0D%0Aend%3Avcard"></a><br>
        </font>
      </div>
    </div>
    <br>
    On 27-Jul-11 3:25 AM, Geordie McBain wrote:
    <blockquote
cite="mid:CAB0gBH1xj5Aba3EYBddcFfYvBfush_NeX1DojzuUxW-SoB=BnQ@mail.gmail.com"
      type="cite">
      <pre wrap="">2011/7/27 Christophe Henrard <a class="moz-txt-link-rfc2396E" href="mailto:Christophe.Henrard@samtech.com"><Christophe.Henrard@samtech.com></a>:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello everybody,
I've been using GMSH for quite a while and develop my own scripts to reload
options at startup and save imaged upon exit.
I always use the menu option "File" -> "Save As..." -> "xxx.opt". Does
anybody know if it is possible to do this automatically upon exit and chose
the file name by writing some command in the startup option file? For
example, to automatically save the plotting area as a png figure upon exit,
I wrote this in my startup opt file:
    >> FigName = "Figure.png";
    >> Print Sprintf(FigName);
Can we do something similar with the options file?
</pre>
      </blockquote>
      <pre wrap="">
I haven't tried it myself, but I think this might be what
General.SaveOptions is for.

<a class="moz-txt-link-freetext" href="http://geuz.org/gmsh/doc/texinfo/gmsh.html#index-General_002eSaveOptions-582">http://geuz.org/gmsh/doc/texinfo/gmsh.html#index-General_002eSaveOptions-582</a>

See also General.OptionsFileName and General.SessionFileName.

</pre>
    </blockquote>
  </body>
<br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</html>