What would be right way to move print layout around Rhino. I would like to work out code to sort layouts by name. For example, I have page views C, A, B and I would like to get A, B, C.
First I took all pages (doc.Views.GetPageViews()) and changed their PageNumer to desired one. That didn’t work out. I assume there could be duplicate number and that would prevent change. Although I saw that page object kept new PageNumber in debug mode.
Next thought was maybe Rhino reorders pages just after change is made. So, pages are moving around after each step. Then it make sense to push pages to end. That didn’t work out either.
From there I assumed that maybe I should commit change somehow but can really find any reasonable method. Same time if I change PageName that is changing in Rhino window.
Happy to get any hint on that.