Draft ToggleGrid/en: 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
{{Docnav
|[[Draft_Snap_Dimensions|Snap Dimensions]]
|[[Draft_Snap_Lock|Toggle snap]]
|[[Draft_Layer|Layer]]
|[[Draft_ShowSnapBar|Show snap bar]]
|[[Draft_Module|Draft]]
|[[Draft_Module|Draft]]
|IconL=Draft_Snap_Lock.svg
|IconL=Draft_Snap_Dimensions.svg
|IconR=Draft_ShowSnapBar.svg
|IconR=Draft_Layer.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
}}
}}
Line 11: Line 12:
{{GuiCommand
{{GuiCommand
|Name=Draft ToggleGrid
|Name=Draft ToggleGrid
|MenuLocation=Draft → Utilities → Toggle grid
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]]
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]]
|Shortcut={{KEY|G}} {{KEY|R}}
|Shortcut={{KEY|G}} {{KEY|R}}
|SeeAlso=[[Draft_Snap|Draft Snap]], [[Draft_Snap_Lock|Draft ToggleSnap]]
|SeeAlso=[[Draft_Snap|Draft Snap]], [[Draft_Snap_Grid|Draft Snap Grid]], [[Draft_SelectPlane|Draft SelectPlane]]
}}
}}


==Description==
==Description==


The [[Image:Draft_ToggleGrid.svg|24px]] '''Draft ToggleGrid''' command switches the grid on or off. The grid can only be used if the {{MenuCommand|Use grid}} preference is selected. See [[#Preferences|Preferences]].
This tool allows you to show and hide the grid defined in the [[Draft_Preferences|Draft Preferences]] or with the [[Draft_SelectPlane|Draft SelectPlane]] tool.


In FreeCAD version 0.19 and 0.20 the grid is always displayed when a command becomes active and toggling the grid while a command is active does not work.
[[Image:Draft Tray.png|Draft Tray]]
{{Caption|Draft Tray which allows you to set the working plane and the grid}}


==Usage==
==Usage==


For general information about snapping see [[Draft_Snap|Draft Snap]].
# Define the appearance of the grid in the [[Draft Preferences]]; go to the menu {{MenuCommand|Edit → Preferences → Draft → Grid and snapping}}; set the "Grid size", "Grid spacing" and "Main line every" options, then press {{Button|OK}}.

# Then right click on a Draft object and select {{MenuCommand|Utilities → [[Image:Draft Grid.svg|16px]] ToggleGrid}}.
# Optionally change the [[Draft_SelectPlane|working plane and/or the grid]].
# Or right click on an empty space on a toolbar, or go to the menu {{MenuCommand|View → Toolbars}}, and click on the [[Draft Snap]] checkbox.
# To invoke '''Draft ToggleGrid''' do one of the following:
# There are several ways to make the grid visible:
#* Press the {{Button|[[Image:Draft Grid.svg|16px]] [[Draft_ToggleGrid|Draft ToggleGrid]]}} button in the Draft toolbar
#* Press the {{Button|[[Image:Draft_ToggleGrid.svg|16px]]}} button in the Draft Snap toolbar.
#* Press the {{Button|[[Image:Draft_ToggleGrid.svg|16px]]}} button in the [[Draft_snap_widget|Draft snap widget]].
#* Use the {{KEY|G}} then {{KEY|R}} keyboard shortcut
#* Use the keyboard shortcut: {{KEY|G}} then {{KEY|R}}. This shortcut cannot be used when a command is active.

==Preferences==

See [[Draft_Snap#Preferences|Draft Snap]].


* To use the grid select: {{MenuCommand|Edit → Preferences... → Draft → Grid and snapping → Grid → Use grid}}. After changing this preference you must restart FreeCAD.
Another way to define the grid is by setting the work plane.
* Several other grid preferences are also available: {{MenuCommand|Edit → Preferences... → Draft → Grid and snapping → Grid}}.
# Press the {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft_SelectPlane|Draft SelectPlane]]}} button.
# You don't have to set a new plane, you just need to change the "Grid spacing" and "Main line every" options, and the grid will update itself in real time.
# Then press {{KEY|Esc}} or the {{Button|Close}} button to abort the command but keep the new grid.


The {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft_SelectPlane|SelectPlane]]}} button is present in the [[Draft_Tray|Draft Tray]] toolbar, which only appears in the {{Button|[[Image:Workbench_Draft.svg|16px]] [[Draft_Workbench|Draft]]}} and {{Button|[[Image:Workbench_Arch.svg|16px]] [[Arch_Workbench|Arch]]}} workbenches.


{{Docnav
{{Docnav
|[[Draft_Snap_Dimensions|Snap Dimensions]]
|[[Draft_Snap_Lock|Toggle snap]]
|[[Draft_Layer|Layer]]
|[[Draft_ShowSnapBar|Show snap bar]]
|[[Draft_Module|Draft]]
|[[Draft_Module|Draft]]
|IconL=Draft_Snap_Lock.svg
|IconL=Draft_Snap_Dimensions.svg
|IconR=Draft_ShowSnapBar.svg
|IconR=Draft_Layer.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
}}
}}
Line 51: Line 52:
{{Draft Tools navi{{#translation:}}}}
{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 13:06, 3 August 2021

Draft ToggleGrid

Menu location
None
Workbenches
Draft, Arch
Default shortcut
G R
Introduced in version
-
See also
Draft Snap, Draft Snap Grid, Draft SelectPlane

Description

The Draft ToggleGrid command switches the grid on or off. The grid can only be used if the Use grid preference is selected. See Preferences.

In FreeCAD version 0.19 and 0.20 the grid is always displayed when a command becomes active and toggling the grid while a command is active does not work.

Usage

For general information about snapping see Draft Snap.

  1. Optionally change the working plane and/or the grid.
  2. To invoke Draft ToggleGrid do one of the following:
    • Press the button in the Draft Snap toolbar.
    • Press the button in the Draft snap widget.
    • Use the keyboard shortcut: G then R. This shortcut cannot be used when a command is active.

Preferences

See Draft Snap.

  • To use the grid select: Edit → Preferences... → Draft → Grid and snapping → Grid → Use grid. After changing this preference you must restart FreeCAD.
  • Several other grid preferences are also available: Edit → Preferences... → Draft → Grid and snapping → Grid.