Here’s an example (from a question posted on the XSI list back in 2009) that illustrates some aspects of using arrays in ICE.
- Get Closest Points returns a sorted array of locations, with the closest locations coming first in the array.
- Find in Array finds the index of the first (and hence closest) point with the psFlag attribute set to True.
- With that index, you use Select in Array to get the location of the closest point with psFlag=True.