Sketcher ConstrainVertical/sv: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 24: Line 24:
==Beskrivning==
==Beskrivning==


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.


<span id="Usage"></span>
<span id="Usage"></span>
Line 31: Line 33:
</div>
</div>


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 vertically]]}} button.
#* Use the {{KEY|V}} keyboard shortcut
#* Use the {{MenuCommand|Sketch → Sketcher constraints → [[File:Sketcher_ConstrainVertical.svg|16px]] Constrain vertically}} entry in the Sketch dropdown menu
# Alternatively, the tool can be started without prior selection, and it will expect a selection.
# 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.





Revision as of 09:24, 20 January 2024

Vertical constraint

Menyplacering
Sketch → Sketcher constraints → Constrain vertically
Arbetsbänkar
Sketcher
Standard genväg
V
Introducerad i version
-
Se även
Constraint Horizontal

Beskrivning

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.

Bruk

See Sketcher ConstraintHorizontal.

Scripting

See Sketcher ConstraintHorizontal.