hm_comparewritefile

Writes the current comparison data to a file.

Syntax

hm_comparewritefile filename

Type

HyperMesh Tcl Query Command

Description

Writes the current comparison data (transformations, match types, match entities, etc.) to a file. This must be preceded by a call to a relevant hm_compareentities* command.

This file can be reloaded using hm_comparereadfile to repopulate the results in a different HyperMesh session.

Inputs

filename
The full name and path of the file to write the data to.

Example

To write the comparison data file to C:/temp/my_compare.txt for the same side comparison of surfs 1-20 and 101-120:

*createmark surfs 1 1-20
*createmark surfs 2 101-120
hm_compareinit
hm_compareentitiessameside surfs 1 surfs 2 0.1 2 0
hm_comparewritefile C:/temp/my_compare.txt
hm_compareend

To read the comparison data file from C:/temp/my_compare.txt and review the distances:

hm_compareinit
hm_comparereadfile C:/temp/my_compare.txt 1
hm_comparefinddistances 1.0 1
hm_comparesetreview 2
hm_compareend

Errors

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

Version History

12.0