hm_comparewritepairedcomps

Writes a list of pairs of source and target components to an output file.

Syntax

hm_comparewritepairedcomps filename match_type

Type

HyperMesh Tcl Query Command

Description

Writes a list of pairs of source and target components to an output file.

This helps extract relevant compare component data from hm_comparewriteresults. This must be preceded by a call to a relevant hm_compareentities* command.

Inputs

filename
The full name and path of the file to write the results to.
match_type
The type of match to query for the area. Valid values are:
0 - Unmatched
1 - Topological
2 - Intersected
3 - Overlapped
4 - Matched

Examples

Compare assembly 1 to assembly 2 and write the paired results to C:/temp/paired_compare.txt:
*createmark elems 1 "by assems" 1 
*createmark elems 2 "by assems" 2
hm_compareinit
hm_comparesetflags 1
hm_compareentitiessameside elems 1 elems 2 1.0 2 0
hm_comparewritepairedcomps C:/test/paired_compare.txt 4
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

2020