hm_checkproximity
Checks proximity between elements/components.
Syntax
hm_checkproximity entity_type mark_id max_proximity ?mode? ?check_side?
Type
HyperMesh Tcl Query
Description
Checks proximity between input entities and returns list of entities within the specified proximity. The output depends on the mode argument as defined below.
Inputs
- entity_type
- The type of entity to check. Valid values are elems and comps (only elems in comps are considered).
- mark_id
- The ID of the mark containing the entities to check. Valid values are 1 and 2.
- max_proximity
-
The maximum distance beyond which an entity is not considered.
- mode
- 1 – Global proximity (default)
- check_side
- 1 – Check both sides of elements
Example
To find proximity between all components using a max distance of 2.5:
*createmark comps 1 all
hm_checkproximity comps 1 2.5
{{201 200 199 198 197 196 195 194 225 224 223 222 221 220 219 218} {221 219 220 218 225 223 224 222 197 195 196 194 201 199 200 198}}
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
13.0.110