::hwat::utils::Renumber
Tries to renumber the list of IDs of the given entity so that they start with the 'startid' given as parameter.
Syntax
Renumber entitytype idlist startid
Arguments
- entitytype
- The type of the entity.
- idlist
- A Tcl list of entity IDs to renumber –OR- keyword "ALL" for all IDs of the given entity type.
- startid
- The minimum allowable value.
Returns
- Success
- 1
- Failure
- {}
Example
::hwat::utils::Renumber nodes [list 101 102 … 903] 100.
::hwat::utils::Renumber nodes "ALL" 1.
Comments
Caller should check to see that the numbers are actually within desired range after renumbering. In some cases it may not be possible to fit all IDs within some desired range. It is always assumed that the numbers are incremented by 1 and that there is no offset.