*writefile

Saves a binary HyperMesh database.

Syntax

*writefile filename do_not_write_stl

Type

HyperMesh Tcl Modify

Description

This command saves a binary HyperMesh database.

Inputs

filename
The full path and filename of the database to save. If this file already exists, HyperMesh will prompt to overwrite the file.
When running in batch mode, *answer (for .cmf files) or hm_answernext (for Tcl scripts) must be used to specify a yes/no answer to this command when the file already exists.
do_not_write_stl
0 - STL mesh is written to the file.
1 - STL mesh is not written to the file. This results in a smaller database and faster write time.

Examples

To save the model to a file named mymodel.hm in the current working directory:

*writefile mymodel.hm 0

To save the model to a file named C:/mymodel.hm:

*writefile C:/mymodel.hm 0

To overwrite an existing file named C:/mymodel.hm:

hm_answernext yes
*writefile C:/mymodel.hm 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}