hm_comparesetflags
If enabled, the comparison module will cache extra pairwise data while performing comparisons between source and target.
Syntax
hm_comparesetflags flag
Type
HyperMesh Tcl Query Command
Description
If enabled, the comparison module will cache extra pairwise data while performing comparisons between source and target. This must be preceded by a call to a relevant hm_compareentities* command.
Inputs
- flag
- 0 - Do not save pairwise data (default, legacy behavior)
Examples
Compare assembly 1 to assembly 2 and query the area of component
10:
*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_comparegetcomparea 4 1 10
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