GiD - The personal pre and post processor

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Current »

objarray renumber <obj> <old_ids> ?<new_ids>?

Replace in <obj>, that must be of integer type, the values of the list <old_ids> by the values of <new_ids>
<old_ids> and <new_ids> must be intarray, and if <new_ids> is missing it is assumed as an increasing array starting from 0

e.g.

set obj [objarray new intarray -values {10 15 3 15 20 3}]
-> 10 15 3 15 20 3
set old_ids [objarray new intarray -values {3 10 15 20}]
objarray renumber $obj $old_ids
-> 1 2 0 2 3 0

  • No labels