*renumber
Renumbers the internal HyperMesh IDs for the specified entity type.
Syntax
*renumber entity_type mark_id start_id incr_val offset_val offset_flag
Type
HyperMesh Tcl Modify
Description
This command renumbers the internalHyperMesh IDs for entities of entity_type contained on mark_id.
This command only renumbers HyperMesh internal IDs, even if the selected entities have solver IDs (see *renumbersolverid).
Inputs
- entity_type
- The type of entity selected for renumbering.
- mark_id
- The mark 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. Can be positive or negative as long as after renumbering all entities will have a positive ID.
- offset_flag
- Flag to specify whether to use offsetting:
Example
To renumber the internal HyperMesh IDs of the displayed elements starting from 100 with an increment of 1:
*createmark elems 1 displayed
*renumber elems 1 100 1 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
}