Hello Community,
I have encountered an interesting problem and I hope anyone could solve it.
I would like to get the object list in a model with the function ObjOccList.
The function could indeed get all the object back, but every time the the objects returned from the function are in different order. For example I have 3 objects in the model name"A,B,C". When I try to get the object with ObjOccList,
it will return "A,B,C" at the first time and "B,A,C" at the second time.
Is there any variable of this function that I could set to fix the order of the object?
Thank you in advance!
Robert Goldenbaum on
Hi,
no, this is not possible. You just have to sort the list - either according to name, or by Y-X position etc.
oObjOccList = ArisData.sort(oObjOccList, Constants.SORT_Y, Constants.SORT_X, g_nLoc)