progeCAD support, tips and troubleshooting forum. progeCAD works very similar to some versions of AutoCAD. Moderated.

Moderators: caddit, Moderators

#2213 by jouni
Tue Jan 27, 2015 4:17 pm
Hello

I have noticed that the order of the selectionset members has changed. Earlier (2010) the order was same as the creation order of the items. How could I reverse the order?

Little example:

I draw five points, lets say numbers 1,2,3,4,5
I select those points ( method can be whatever, it will not change the order)
I loop trough the selectionset (for each...next) and put the point coordinates to the message box or file.
The first coordinates are the coordinates of the point number 5.
So the order of the selectionset members is not the same as the order of the creation.

Is this a bug?

#2214 by jouni
Wed Jan 28, 2015 2:24 pm
This is solved by setting the system variable SORTENTS value to "0". The value was "127" by default.
In the script I used a command ThisDrawing.SetVariable "SORTENTS", "0"
There is still some differencies between 2010 and 2014.