hm_proximitygetelementdistance
Returns the proximity distance for a given element.
Syntax
hm_proximitygetelementdistance element_id
Type
HyperMesh Tcl Query Command
Description
Returns the proximity distance for a given element.
This must be preceded by a call to hm_proximityinit and followed by a call to hm_proximityend.
Inputs
- element_id
- The ID of the element to query.
Examples
Output the proximity distance at each input element:
*createmark comps 1 all
hm_proximityinit comps 1 2.5
hm_proximitymarksourceproximityelements 1
set elems [hm_getmark elems 1]
foreach elem $elems {
puts "Distance for element $elem is [hm_proximitygetelementdistance $elem]"
}
hm_proximityend
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2019