Std ViewFitSelection/fr: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
|[[Std_ViewFitAll|Std ViewFitAll]]
|[[Std_ViewIsometric|Std ViewIsometric]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewFitAll.svg
|IconR=Std_ViewIsometric.svg
|IconC=Freecad.svg
}}

<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/fr
{{GuiCommand/fr
Line 16: Line 26:
</div>
</div>


Zooms until all of the [[tree view]] selected objects are shown in the [[3D view]].
The '''Std ViewFitSelection''' command zooms and pans the camera so that all selected objects fit inside the active [[3D_view|3D view]].


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 23: Line 33:
</div>
</div>


# Select one or more objects.
Invoke the command several ways:
# There are several ways to invoke the command:
* Click on [[Image:Std_ViewFitSelection.png|16px]] button in the View toolbar
* Use the {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → Standard views → [[Image:Std_ViewFitSelection.png|16px]] Fit selection}} entry from the View menu
#* Press the {{Button|[[Image:Std_ViewFitSelection.svg|16px]] [[Std_ViewFitSelection|Std ViewFitSelection]]}} button.
#* Select the {{MenuCommand|View → Standard views → [[Image:Std_ViewFitSelection.svg|16px]]Fit selection}} option from the menu.
* Press the {{KEY|V}} {{KEY|S}} keyboard shortcut
#* Select the {{MenuCommand|[[Image:Std_ViewFitSelection.svg|16px]] Fit selection}} option from the [[3D_view|3D view]] context menu.
* Right-clicking in the [[3D view]] (and having nothing pre-selected) will bring up the context menu with {{Emphasis|Fit Selection}}
#* Use the keyboard shortcut: {{KEY|V}} then {{KEY|S}}.


==Scripting==

{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

To change the view to 'fit selection' the {{incode|SendMsgToActiveView}} method of the FreeCADGui object can be used. This method is not available if FreeCAD is in console mode.

{{Code|code=
import FreeCADGui

FreeCADGui.SendMsgToActiveView('ViewSelection')
}}

{{Docnav
|[[Std_ViewFitAll|Std ViewFitAll]]
|[[Std_ViewIsometric|Std ViewIsometric]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewFitAll.svg
|IconR=Std_ViewIsometric.svg
|IconC=Freecad.svg
}}


{{Std Base navi{{#translation:}}}}
{{Std Base navi{{#translation:}}}}

Revision as of 20:34, 9 April 2020

Std Affiche la sélection

Emplacement du menu
Affichage → Vues Standards → Affiche la sélection
Ateliers
Tous
Raccourci par défaut
vs
Introduit dans la version
-
Voir aussi
Std Tout afficher

Description

Effectue un zoom jusqu'à ce que tous les objets sélectionnés dans l'arborescence soient affichés dans la vue 3D.

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

Utilisation

Cliquez sur ou faire Affichage → Vues standards → Affiche la sélection dans le menu supérieur.

  1. Select one or more objects.
  2. There are several ways to invoke the command:
    • Press the Std ViewFitSelection button.
    • Select the View → Standard views → Fit selection option from the menu.
    • Select the Fit selection option from the 3D view context menu.
    • Use the keyboard shortcut: V then S.


Scripting

See also: FreeCAD Scripting Basics.

To change the view to 'fit selection' 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('ViewSelection')