My diagrams build a map from objects in differant files, and therefore there is no means of saving the order that items are displayed on the screen.
To solve this I want to store the z-order of objects in a layer by partid to a seperate file, but I am having trouble getting the bottom most object in a layer so i can start iterating through them.
I want to use something like:
dim BottomObject as GoObject = myLayer(Nothing,1)
but this returns nothing. Is there anyway of doing this, or any other means of saving and loading the z-order of objects?
The z-order is the order of the top-level objects in the Document. In other words, the first item is the backmost, and the last one in the list is the frontmost.
The main objective is to get a list of the objects ordered by their z order, so that I can reposition them in the correct zorder when the user reloads a file and my app rebuilds the map
I've found ".SortByZOrder" which might be a little better!!!
- although I'm having difficulty trying to understand how to apply it to the objects within a layer!