Sketcher ConstrainVertical/en: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


{{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 15: Line 15:
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|Shortcut={{KEY|V}}
|Shortcut={{KEY|V}}
|SeeAlso=[[Sketcher_ConstrainHorVer|Sketcher ConstrainHorVer]], [[Sketcher_ConstrainHorizontal|Sketcher ConstraintHorizontal]]
|SeeAlso=[[Sketcher_ConstrainHorizontal|Sketcher Constraint Horizontal]]
}}
}}


==Description==
==Description==


The [[Image:Sketcher_ConstrainVertical.svg|24px]] [[Sketcher_ConstrainVertical|Sketcher ConstrainVertical]] command constrains lines or pairs of points to be vertical (parallel to the vertical axis of the sketch).
Creates a vertical constraint to the selected lines or polyline elements. As of {{VersionPlus|0.17}} it can also constrain vertices vertically. More than one object can be selected.

{{Version|0.22}}: In most cases it is advisable to use the combined [[Sketcher_ConstrainHorVer|Sketcher ConstrainHorVer]] command instead.


==Usage==
==Usage==


See [[Sketcher_ConstrainHorizontal#Usage|Sketcher ConstraintHorizontal]].
# Select the lines or vertices to be constrained vertically
# To invoke the vertical constraint command:
#* Press the {{Button|[[File:Sketcher_ConstrainVertical.svg|16px]] [[Sketcher_ConstrainVertical|Constrain vertical]]}}.
#* Use the {{KEY|V}} keyboard shortcut
#* Use the {{MenuCommand|Sketch → Sketcher constraints → Constrain vertically}} entry in the Sketch dropdown menu
# Alternatively, the tool can be started without prior selection, and it will expect a selection; but only lines will be selectable.
# Right-click or press {{KEY|Esc}} once, to exit the tool.


==Scripting==
==Scripting==


See [[Sketcher_ConstrainHorizontal#Scripting|Sketcher ConstraintHorizontal]].
{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Vertical', Line))}}

The [[Sketcher_scripting|Sketcher scripting]] page explains the values which can be used for {{incode|Line}} and contains further examples on how to create constraints from Python scripts.




{{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
}}
}}


{{Sketcher Tools navi{{#translation:}}}}
{{Sketcher_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 09:24, 20 January 2024

Sketcher ConstrainVertical

Menu location
Sketch → Sketcher constraints → Constrain vertically
Workbenches
Sketcher
Default shortcut
V
Introduced in version
-
See also
Sketcher ConstrainHorVer, Sketcher ConstraintHorizontal

Description

The Sketcher ConstrainVertical command constrains lines or pairs of points to be vertical (parallel to the vertical axis of the sketch).

introduced in version 0.22: In most cases it is advisable to use the combined Sketcher ConstrainHorVer command instead.

Usage

See Sketcher ConstraintHorizontal.

Scripting

See Sketcher ConstraintHorizontal.