I have a Function called Sort, it goes like this
For each Object order by Object,Y ascending.
Object Move to top of layer
The above way is working the way it should. If I change 'Object' to a 'ZOrderFamily' it stops working correctly. I only have two different objects in the 'ZOrderFamily. If I remove the second object and only have the original 'Object' in the family it still doesn't work correctly. It doesn't Z-Order them correctly.
For each ZOrderFamily order by ZOrderFamily,Y ascending.
ZOrderFamily Move to top of layer
All I did was change the Target Object to a Family and it stops working. I am not sure how else to Z-order using an objects Y than what I have. I can only assume 'For each' may be the problem since I went from an object to a family.
I need to know what I am doing wrong. Nothing else is effecting the objects Z-Order because there is nothing else I have that can effect it. The only events associated with the objects are the ones used to create them. The 'Sort Function is called a tick after they are created (Wait 0 Seconds). All of the objects are on the same layer. The 2nd object will always be created between a few of the original objects, so they seemingly need to be Z-ordered together.
Can someone please tell me what condition/expression to use or another way to do this so it works.
Thank you for your time. I may have a slow reply, but it will be appreciated.