HyperWorks Tools

::hwat::utils::Renumber

::hwat::utils::Renumber

Previous topic Next topic No expanding text in this topic  

::hwat::utils::Renumber

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::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

1 if successful, {} otherwise.

 

EXAMPLE

::hwat::utils::Renumber nodes [list 101 102 … 903]  100.

::hwat::utils::Renumber nodes "ALL" 1.

 

Comment

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.

 

See also

Utils Functions