Layer name sort order


#1

In v5 I have three layers that I keep at the top of the sort order by prefixing their names with an underscore i.e. _scratch. It seems that in v6 the underscore is ignored and the layers get sorted by the first alpha character.

My preference would be to allow that underscore to lead the sort order. Having those layers at the top of the list speeds a lot of operations that involve layer dialogs. Most of my heavy lifting is done on those layers then moved to the tree below.

TIA
Robb


(Pascal Golay) #2

Hi Rob - as far as I can see a leading underscore does force layer names to sort together.

image

is that what you mean?

-Pascal


#3

They are grouped together but I want them at the top of the list in standard sort order as illustrated here ->
v5 Standard sort order
image
not like this v6 Standard sort order
image
If I do a reverse sort in v6 they come to the top but the rest of the names are out of working sequence
image

in the overall scheme of things I know this is trivial as I could just put numbers in front of the names BUT - I work with a lot of legacy models going back to Rhino v1 that have this layer naming convention.


(Pascal Golay) #4

Yep, I see, thanks.

https://mcneel.myjetbrains.com/youtrack/issue/RH-41224

-Pascal


(Brian Gillespie) #5

RH-41224 is fixed in the latest WIP


#6

Thanks Brian… it is better but not quite the same as v5
image
WIP with a number leading the sort order

image
v5 with the underscore leading the sort order


(Dale Lear) #7

The layer name sorting bug will be fixed in Rhino 6.2 which is scheduled to ship in about 5 weeks. The fix is that layer names in Rhino 6 will sort exactly like they did in Rhino 5 on US-English locales, and probably most other locales. In particular, all common symbols, including underscore (_) will sort before numerals and latin letter glyphs.

Details are in https://mcneel.myjetbrains.com/youtrack/issue/RH-41224


LayerTableEvent when deleting a layer
(Brian Gillespie) #8

RH-41224 is fixed in the latest Service Relase Candidate