ZoomExtents padding

Unlike zoom extents in Rhino, RhinoViewport.ZoomExtents doesn’t leave any padding. What is the best way to get padding for ZoomExtents in Rhinocommon?

Thanks,
Sam

Are you zooming a standard view, a layout view, or a detail view?

A standard view

This seems to produce a similar result to Zoom->Extents.

https://github.com/dalefugier/SampleCsCommands/blob/master/SampleCsZoom.cs

How does it compare to your code?

Hi Dale,

Turns out the issue had to do with me switching between parallel and perspective projections…

Thanks for your help,
Sam