Sketcher ConstrainVertical: Difference between revisions

From FreeCAD Documentation
No edit summary
(Docnav)
Line 4: Line 4:
<!--T:7-->
<!--T:7-->
{{Docnav
{{Docnav
|[[Sketcher_ConstrainPointOnObject|Point on object]]
|[[Sketcher_ConstrainHorizontal|Horizontal]]
|[[Sketcher_ConstrainHorizontal|Horizontal]]
|[[Sketcher_ConstrainParallel|Parallel]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainPointOnObject.svg
|IconL=Sketcher_ConstrainHorizontal.svg
|IconR=Sketcher_ConstrainHorizontal.svg
|IconR=Sketcher_ConstrainParallel.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}
Line 48: Line 48:
<!--T:6-->
<!--T:6-->
{{Docnav
{{Docnav
|[[Sketcher_ConstrainPointOnObject|Point on object]]
|[[Sketcher_ConstrainHorizontal|Horizontal]]
|[[Sketcher_ConstrainHorizontal|Horizontal]]
|[[Sketcher_ConstrainParallel|Parallel]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainPointOnObject.svg
|IconL=Sketcher_ConstrainHorizontal.svg
|IconR=Sketcher_ConstrainHorizontal.svg
|IconR=Sketcher_ConstrainParallel.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}

Revision as of 15:48, 2 January 2024

Sketcher ConstrainVertical

Menu location
Sketch → Sketcher constraints → Constrain vertically
Workbenches
Sketcher
Default shortcut
V
Introduced in version
-
See also
Sketcher Constraint Horizontal

Description

Creates a vertical constraint to the selected lines or polyline elements. As of version 0.17 and above it can also constrain vertices vertically. More than one object can be selected.

Usage

  1. Select the lines or vertices to be constrained vertically
  2. To invoke the vertical constraint command:
    • Press the Constrain vertically button.
    • Use the V keyboard shortcut
    • Use the Sketch → Sketcher constraints → Constrain vertically entry in the Sketch dropdown menu
  3. Alternatively, the tool can be started without prior selection, and it will expect a selection.
  4. Right-click or press Esc once, to exit the tool.

Scripting

Sketch.addConstraint(Sketcher.Constraint('Vertical', Line))

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.