Viewport location for multiple sheet issue

Reading through an old post of Jeremy Tammik on his Building Coder blog helped me understand a little more the viewport coordinate logic in the Revit API:

There is a more elegant way to do this, but with the time constraints I am dealing with I have found a work around that fixes the issue in my graph/custom nodes. Greg McDowell has an old post from 2016 that looks at removing scope boxes from views.

By applying this python script to the views, I can remove the scope box from the view. I then extract the bounding box from the previously assigned scope box and use MEPover’s view.setcropboxcurves to redefine the crop region. Once the crop region is redefined, I need to reassign the scope box. But before I do that I have to reset the crop region as detailed here.

This solution must be run after the views are created and before they are placed on sheets.