hm_holedetectiongetwasherelementslist
Returns the ID of washer elements layer-wise.
Syntax
hm_holedetectiongetwasherelementslist index
Type
HyperMesh Tcl Query Command
Description
Returns the ID of washer elements layer-wise. This must be preceded by a call to hm_holedetectionfindholes.
The output is in the format:
{Number of layers {layer 1 elem IDs…} {layer 2 elem IDs…} {layer 3 elem IDs…} etc...}
For example:
{2 { 430 429 428 427 426 425 424 423 422 419}{ 418 417 416 415 414 413 412 411 410 409}}
Inputs
- index
- The index of the node/line to get the associated hole index.
Examples
To output the washer elements layer-wise for each detected hole that has washer elements to
the command window:
hm_holedetectioninit
*createmark elems 1 all
hm_holedetectionsetentities elems 1
hm_holedetectionsetholeparams hole_shape=1
set find_type 1
hm_holedetectionfindholes $find_type
puts "---------------------------------------------------------------------"
set num_holes [hm_holedetectiongetnumberofholes]
puts " Number of Shell Holes:: $num_holes"
for {set i 0} {$i < $num_holes } {incr i } {
set holedetailslist [hm_holedetectiongetwasherelementslist $i]
puts "hole index:$i $holedetailslist"
}
puts "---------------------------------------------------------------------"
hm_holedetectionend
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.1