next up previous contents
Next: How to deal with Up: Tips and Hints Previous: How to map loads   Contents


How to run cgx in batch mode

Most commands can be executed in batch-mode. Actually if you read a file with geometry (fbd-file) then you run cgx in batch mode already! You just have to add ''exit'' or ''quit'' at the end of the file and it will be obvious. You might use the ''read'' command in such a command-file to reference other command-files or to read files with mesh-entities for whatever purposes. In such a way you can create and modify geometry or meshes in batch-mode or evaluate results in batch-mode. But you need a graphic-capable computer because cgx needs it also if no graphic output is requested. Nevertheless the popup of the graphic window can be suppressed if cgx was started with the ``-bg'' parameter.

Some commands make only sense in a batch file like ``if'' and ``while''. Please see also the demo in ``If and while demo'' on how to work with this commands. See also ``How to write values to a file''.

It should be noted that a successive 'save' or 'exit' command will overwrite the batch file if it has the file-extension 'fbd'. To prevent this the user should use a different extension like 'fbl'.


next up previous contents
Next: How to deal with Up: Tips and Hints Previous: How to map loads   Contents
root 2016-03-04