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 selection' the method of the FreeCADGui object can be used. This method is not available if FreeCAD is in console mode.