Std ViewFitSelection

Description
The Std ViewFitSelection command zooms and pans the camera so that all selected objects fit inside the active 3D view.

Usage

 * 1) There are several ways to invoke the command:
 * 2) * Press the button.
 * 3) * Select the option from the menu.
 * 4) * Select the option from the 3D view context menu.
 * 5) * Use the keyboard shortcut: then.

Scripting
FreeCAD Scripting Basics.

To change the view to 'fit all' use the method of the ActiveView object. This method is not available if FreeCAD is in console mode.