Std ViewFitAll: Difference between revisions

From FreeCAD Documentation
m (added icon + AKA)
(Undo revision 856803 by Kunda1 (talk)Please, please do not create these ad-hoc inconsistencies.)
Tag: Undo
Line 24: Line 24:


<!--T:9-->
<!--T:9-->
The [[Image:Std_ViewFitAll.svg|24px|link=Std_ViewFitAll]] [[Std_ViewFitAll|Std ViewFitAll]] command (also known as "{{Emphasis|zoom to fit}}") zooms and pans the camera so that all visible objects fit inside the active [[3D_view|3D view]].
The '''Std ViewFitAll''' command zooms and pans the camera so that all visible objects fit inside the active [[3D_view|3D view]].


==Usage== <!--T:3-->
==Usage== <!--T:3-->

Revision as of 18:40, 26 February 2021

Std ViewFitAll

Menu location
View → Standard views → Fit all
Workbenches
All
Default shortcut
V F
Introduced in version
-
See also
Std ViewFitSelection

Description

The Std ViewFitAll command zooms and pans the camera so that all visible objects fit inside the active 3D view.

Usage

  1. There are several ways to invoke the command:
    • Press the Std ViewFitAll button.
    • Select the View → Standard views → Fit all option from the menu.
    • Select the Fit all option from the 3D view context menu.
    • Use the keyboard shortcut: V then F.

Notes

  • It is also possible to zoom to a 'fit all' via the Mini-cube menu of the Navigation Cube.

Scripting

See also: FreeCAD Scripting Basics.

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

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.fitAll()

Alternatively the SendMsgToActiveView method of the FreeCADGui object can be used. This method is not available if FreeCAD is in console mode.

import FreeCADGui

FreeCADGui.SendMsgToActiveView('ViewFit')