*mergefile

Merges a HyperMesh binary file into the current model.

Syntax

*mergefile filename geom_merge fe_merge

Type

HyperMesh Tcl Modify Command

Description

Merges a HyperMesh binary file into the current model. Any entity names or IDs in the incoming file are renamed/renumbered with the least disruption possible.

Inputs

filename
The full path and filename of the database file.
geom_merge
A flag indicating whether to import and merge geometry from the incoming model. If both geom_merge and fe_merge are 0, this behaves like *readfile.
0 - Do not merge geometry
1 - Merge geometry
fe_merge
A flag indicating whether to import and merge FE from the incoming model. If both geom_merge and fe_merge are 0, this behaves like *readfile.
0 - Do not merge FE
1 - Merge FE

Example

To merge the file named C:/mymodel.hm into the current session:

*mergefile C:/mymodel.hm 1 1

Errors

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