|
|
| Menu location |
|---|
| View → Standard Views → Fit All |
| Workbenches |
| All |
| Default shortcut |
| V F |
| Introduced in version |
| - |
| See also |
| Std ViewFitSelection |
The Std ViewFitAll command zooms and pans the camera so that all visible objects fit inside the active 3D View.
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
Use the fitAll method of the View object to zoom to fit all.
import FreeCADGui
view = FreeCADGui.ActiveDocument.ActiveView
view.fitAll()
For the active view the SendMsgToActiveView method of the FreeCADGui object can also be used.
import FreeCADGui
FreeCADGui.SendMsgToActiveView("ViewFit")