*renumbersolveridlist
Renumbers the solver IDs sent in an ordered list for the specified entity type.
Syntax
*renumbersolveridlist entity_type entity_list start_id incr_val offset_val offset_flag reserved_1 reserved_2 reserved_3
Type
HyperMesh Tcl Modify Command
Description
This command renumbers the solver IDs for entities of entity_type in the order contained in the ordered entity_list.
This command works in two ways, depending on the entities selected. If the selected entities have solver IDs, the command renumbers the solver IDs and not the HyperMesh internal IDs. However, if the selected entities do not have solver IDs, the command renumbers the HyperMesh internal IDs (see *renumber).
Inputs
- entity_type
- The type of entity selected for renumbering.
- entity_list
- The ordered list that contains the entities. Valid values are 1 and 2.
- start_id
- Integer value > 0 specifying the starting value.
- incr_val
- Integer value > 0 specifying the renumbering increment.
- offset_val
- Integer value to use for offsetting. It can be positive or negative, as long as after the renumbering, all entities have a positive ID.
- offset_flag
- Flag to specify whether or not to use offsetting.
- reserved_1
- Reserved for future development. Value = 0.
- reserved_2
- Reserved for future development. Value = 0.
- reserved_3
- Reserved for future development. Value = 0.0.
Example
To renumber the solver IDs of the elements in list 2 starting from 1 with an increment of
1:
*renumbersolveridlist elements 2 1 1 0 0 0 0 0.0
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
2021.2