I am using the function hm_getentityvalue as follows,
hm_getentityvalue elems 123 'cogx' 1
in order to get the x coordinates of all the elements in a particular hypermesh meshed model, and then I'm finding the minimum and maximum x-coordinates and the corresponding 2 elements that represent them while running through the elements in a foreach loop. However, this code seems to be using too much physical memory, almost a 6% jump after every iteration and eventually leads to 99% physical memory usage on my machine.
How could I avoid this ? And also, is there an easier way to find elements with minimum and maximum x/y/z coordinates in a model using tcl code but not by cycling through each element and checking its coordinates ?
Thanks,