Renumber views on sheet

I have recreated a definition to renumber views on a sheet based on the order they are selected. I can get the selection created but the numbers are not updated. Any help would be greatly appreciated.

“True” on your boolean?

I have tried that.

Try this:

Still nothting

Ok I figured it out! It was a combination of JacobSmall’s help andRenumber_Viewports Detail_Number in the first code block is what was wrong. Here is the correct definition cleaned up for everyone’s use. Thank you for everyone’s help!


Please Package if possible. I like it!

Hello, maybe someone could help me to find out why this is not working? And why I am getting this IndexError?

This post is +2 years old and already solved. Best to start a new topic and link back here.