Restore preview Zoom viewport

I need save the viewport zoom (camera) proceed with some
operations and at the end return to the same zoom (camera) saved before the operations.

Any ideas?

Hey @MatrixRatrix I believe this is saved in the ViewportInfo. A simple solution to avoid any hardcoding could be to convert it ToJSON before the events, then covert it back and assign it to the Viewport.

How about RhinoDoc.NamedViews?

– Dale