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.
Jake the following code does what I want…
I’m not following what you’re doing here, but I don’t understand why it isn’t basically:
For Each obj As GoObject In goView1.Document ' (or layer)
If p IsNot Nothing Then
ItmZorder += p.PartID.ToString() + ","
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 mapI've found ".SortByZOrder" which might be a little better!!!
You don’t need to sort. The order in the Layer is the Z order.