hm_holedetectiongetnumberofmates
Returns the number of found hole/tube mating 'groups'.
Syntax
hm_holedetectiongetnumberofmates
Type
HyperMesh Tcl Query
Description
Returns the number of found hole/tube mating 'groups'. This must be preceded by a call to hm_holedetectionfindmates.
Example
To write out all geometric shell mate details to a file named C:/temp/holes.txt:
set holesfile [open "C:/temp/holes.txt" "w"]
hm_holedetectioninit
*createmark surfs 1 all
hm_holedetectionsetentities surfs 1
hm_holedetectionsetholeparams hole_shape=31
hm_holedetectionfindholes 1
hm_holedetectionfindmates
set n [hm_holedetectiongetnumberofmates]
if { $n > 0 } {
puts $holesfile "Number of mates = $n"
puts $holesfile "Mate details"
for {set i 0} {$i < $n} {incr i} {
puts $holesfile "i = $i [hm_holedetectiongetmatedetails $i]"
}
} else {
puts $holesfile "Holes mates not detected."
}
hm_holedetectionend
close $holesfile
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0