*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.
- do_not_write_stl
- 0 - STL mesh is written to the file.
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
}