Generate a New Sheet Number from Existing Sheet Numbers and Align View to Center

Hey,

Looks good so far :slight_smile:

You obviously know what you’re doing, so I’ll just give a couple of pointers…

For the sheet number, I would presume that for the Level 3 you are showing, your sheet will be numbered something like… 2030 (20 = Presentation, 3 for level, 0 first sheet), so if you extract the last 1 or 2 indexes from the name, turn it into a number and combine it with a prefix defined in your view type, you’re good to plug it in.

As to centering the view on the sheet, there are other methods, but if your sheet is A2 landscape, then you will know that the placement of the view is 210 by 297. @Greg_McDowell talks of a method here Finding the Center of a View... not a Viewport he can share? It would take me a bit of time to recreate the worflow described in the post, but I can have a go if he’s not around :slight_smile:

Hope that helps,

Mark