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

Version 1 Current »

objarray remove <obj> <index_start> ?<index_end>?

Remve the block from index_start to index_end

<obj> the objarray to be modified

<index_start> <index_end> integer indices of the block to be replaced. If <index_end> is missing only 1 item is removed

Warning: the values of <obj> itself are modified, without creating another copy of the object

e.g.

set obj [objarray new_from_to intarray 1 12]
-> 1 2 3 4 5 6 7 8 9 10 11 12
objarray remove $obj 4
-> obj = {1 2 3 4 6 7 8 9 10 11 12}
objarray remove $obj 4 6
-> obj = {1 2 3 4 9 10 11 12}
  • No labels