Zoom Extends All viewports not working properly

As the title says, I have problems with Zoom Extends All Viewports.

The command does not work with Layouts. Is that normal?

Hi Martin, ZEA does not work in layout details, if that is what you mean. it works in a layout as a whole - but it not, as far as I can see, any different from ZE in that context since there is only one viewport.
This python may help -

import Rhino
import scriptcontext as sc


def ZELayouts():
    
    views = sc.doc.Views.GetPageViews()

    for view in views:
        sc.doc.Views.ActiveView = view
        view.ActiveViewport.ZoomExtents()
        view.Redraw()
        
ZELayouts()

-Pascal

So when I want a dozen of layouts all zoomed as large as possible, I have to click the command again and again for every layout?

Yep.
My plugin has a script for that, if that helps. The command is DetailsTools:

1 Like

Thanks I might try that.