GiD - The personal pre and post processor
insert
objarray insert <obj> <index> <obj_to_insert>
Inserts another objarray (that must be of the same type) at <index> (from 0 to n)
<obj> the objarray where <obj_to_insert> will be inserted
<index> is an integer insertion location. It is possible to use the word 'end' to specify n, to insert at the end of $obj. A negative index is considered like 0 to concatenate at the beginning, and greater than n is considered like n to append at the end
Warning: the values of <obj> itself are modified, without creating another copy of the object
e.g.
set obj [objarray new_from_to intarray 2 5]
-> 2 3 4 5
set obj2 [objarray new_from_to intarray 4 6]
-> 4 5 6
objarray insert $obj end-1 $obj2
-> obj = {2 3 4 5 6 4 5}
COPYRIGHT © 2022 · GID · CIMNE