Std ViewZoomIn: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 41: Line 41:
==Preferences==
==Preferences==


* The zoom step (zoom factor) can be changed in the preferences: {{MenuCommand|Edit → Preferences... → Display → 3D View}}. This setting also affects scroll wheel zoom. See [[Preferences_Editor#3D_View|Preferences Editor]].
* The zoom factor can be changed in the preferences: {{MenuCommand|Edit → Preferences... → Display → Navigation → Zoom step}}. This setting also affects scroll wheel zoom. See [[Preferences_Editor#Navigation|Preferences Editor]].


==Scripting==
==Scripting==

Revision as of 18:42, 2 April 2020

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.


Std ViewZoomIn

Menu location
View → Zoom → Zoom In
Workbenches
All
Default shortcut
Ctrl++
Introduced in version
-
See also
Std ViewZoomOut, Std ViewBoxZoom

Description

The Std ViewZoomIn command zooms in the camera in the active 3D view.

Usage

  1. There are several ways to invoke the command:
    • Select the View → Zoom → Zoom In option from the menu.
    • Use the keyboard shortcut: Ctrl++.

Notes

  • It is also possible to zoom with the mouse scroll wheel.

Preferences

  • The zoom factor can be changed in the preferences: Edit → Preferences... → Display → Navigation → Zoom step. This setting also affects scroll wheel zoom. See Preferences Editor.

Scripting

See also: FreeCAD Scripting Basics.

To zoom in the view use the zoomIn method of the ActiveView object. This method is not available if FreeCAD is in console mode.

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.zoomIn()