hm_holedetectionsetentities
Defines the entities to consider for hole/tube detection.
Syntax
hm_holedetectionsetentities entity_type mark_id
Type
HyperMesh Tcl Query
Description
Adds entities to find holes in. Can be called multiple times with different entity types/selections and each call appends to any previous selections. Selections are cleared on any call to hm_holedetectioninit/hm_holedetectionend.
This must be preceded by a call to hm_holedetectioninit.
Inputs
- entity_type
- The type of entities to find holes in. Valid values are comps, surfs, solids and elems. If comps are specified, both geometry and FE are considered.
- mark_id
- The ID of the mark containing the entities. Valid values are 1 and 2.
Example
To write out all geometric shell hole 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
set n [hm_holedetectiongetnumberofholes]
if { $n > 0 } {
puts $holesfile "Number of holes = $n"
puts $holesfile "Holes details"
for {set i 0} {$i < $n} {incr i} {
puts $holesfile "i = $i [hm_holedetectiongetholedetails $i]"
}
} else {
puts $holesfile "Holes not detected."
}
hm_holedetectionend
close $holesfile
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0