GuiCommand: Name: Sketcher ConstrainHorizontal MenuLocation: Sketch , Sketcher constraints , Constrain horizontal Workbenches: Sketcher_Workbench Shortcut: H SeeAlso: Sketcher_ConstrainHorVer, Sketcher_ConstrainVertical
Sketcher ConstrainHorizontal
Description
The Sketcher ConstrainHorizontal tool constrains lines or pairs of points to be horizontal (parallel to the horizontal axis of the sketch).
(v1.0)
: In most cases it is advisable to use the combined Sketcher ConstrainHorVer tool instead.
Usage
See also: Drawing aids.
Continue mode
-
Make sure there is no selection.
-
There are several ways to invoke the tool:
<small>(v1.0)</small> : If the **Auto tool for Horizontal/Vertical** [preference](wiki-test2.php?gitpage=Sketcher_Preferences#General) is selected (default): press the down arrow to the right of the **<img src="https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/Sketcher_ConstrainHorVer.svg" width=|x16px><img src="https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/Toolbar_flyout_arrow.svg" width=x16px>** button and select the **<img src="https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/Sketcher_ConstrainHorizontal.svg" width=16px> Constrain horizontal** option from the dropdown.
-
If this preference is not selected (and in {{VersionMinus|0.21}}): press the
Constrain horizontal button.
-
Select the Sketch → Sketcher constraints →
Constrain horizontal option from the menu.
-
Use the keyboard shortcut: H.
-
-
The cursor changes to a cross with the tool icon.
-
Do one of the following:
- Select two points.
- Select a single line.
-
A constraint is added.
-
Optionally keep creating constraints.
-
To finish, right-click or press Esc, or start another geometry or constraint creation tool.
Run-once mode
-
Do one of the following:
- Select two or more points.
- Select one or more lines. Points can be included in the selection, but will be ignored.
-
Invoke the tool as explained above, or with the following additional option:
<small>(v1.0)</small> : Right-click in the [3D view](wiki-test2.php?gitpage=3D_view) and select the **<img src="https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/Sketcher_ConstrainHorizontal.svg" width=16px> Constrain horizontal** option from the context menu.
-
Depending on the selection one or more constraints are added.
Scripting
The Sketcher scripting page explains the values which can be used for Line
and contains further examples on how to create constraints from Python scripts.
⏵ documentation index > Sketcher > Sketcher ConstrainHorizontal
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Sketcher_ConstrainHorizontal.md