hm_getoccupiedentitiesinrange
Returns the list of occupied IDs in a specific range.
Syntax
hm_getoccupiedentitiesinrange entity_type pool_id range
Type
HyperWorks Tcl Query
Description
Returns the list of occupied IDs in a specific range. The values are returned as a compacted list using ranges and commas where applicable.
Inputs
- entity_type
- The type of entity to query.
- pool_id
- The ID of the entity pool to query.
- range
- The ID range within the specified pool to query. This should be encapsulated in quotes.
Example
To get the element IDs in use in pool 2 for the range 100-200:
hm_getoccupiedentitiesinrange elems 2 "100-200"
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
14.0