Sketcher ConstrainVertical: Difference between revisions

From FreeCAD Documentation
(Docnav)
m (wiki markup)
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>
<!--T:7-->
{{Docnav|[[Sketcher ConstrainPointOnObject|Point On Object]]|[[Sketcher_ConstrainHorizontal|Horizontal]]|[[Sketcher_Workbench|Sketcher]]|IconL=Constraint_PointOnObject.png|IconC=Workbench_Sketcher.svg|IconR=Constraint_Horizontal.png}}
{{Docnav
|[[Sketcher_ConstrainPointOnObject|Point On Object]]
|[[Sketcher_ConstrainHorizontal|Horizontal]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainPointOnObject.svg
|IconR=Sketcher_ConstrainHorizontal.svg
|IconC=Workbench_Sketcher.svg
}}


<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand
|Name=Sketcher ConstrainVertical
|Icon=Constraint Vertical.svg
|Name=Vertical constraint
|Workbenches=[[Sketcher Workbench|Sketcher]]
|Shortcut=V
|MenuLocation=Sketch → Sketcher constraints → Constrain vertically
|MenuLocation=Sketch → Sketcher constraints → Constrain vertically
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|SeeAlso=[[Sketcher_ConstrainHorizontal|Constraint Horizontal]]
|Shortcut={{KEY|V}}
|SeeAlso=[[Sketcher_ConstrainHorizontal|Sketcher Constraint Horizontal]]
}}
}}


Line 16: Line 23:


<!--T:4-->
<!--T:4-->
Creates a vertical constraint to the selected lines or polyline elements. Starting with v0.17, it can also contrain vertices vertically. More than one object can be selected.
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.


==How to use== <!--T:3-->
==Usage== <!--T:3-->


<!--T:5-->
<!--T:5-->
# Select the lines or vertices to be constrained vertically
# Select the lines or vertices to be constrained vertically
# Press the {{Button|[[File:Constraint Vertical.svg|24px]]}} '''vertical constraint''' icon.
# 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.
# 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.
# Right-click or press {{KEY|Esc}} once, to exit the tool.


==Scripting==
</translate>
<translate>
<!--T:6-->
{{Docnav|[[Sketcher ConstrainPointOnObject|Point On Object]]|[[Sketcher_ConstrainHorizontal|Horizontal]]|[[Sketcher_Workbench|Sketcher]]|IconL=Constraint_PointOnObject.png|IconC=Workbench_Sketcher.svg|IconR=Constraint_Horizontal.png}}


{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Vertical', Line))}}
{{Sketcher Tools navi}}


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

<!--T:6-->
{{Docnav
|[[Sketcher_ConstrainPointOnObject|Point On Object]]
|[[Sketcher_ConstrainHorizontal|Horizontal]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainPointOnObject.svg
|IconR=Sketcher_ConstrainHorizontal.svg
|IconC=Workbench_Sketcher.svg
}}


</translate>
</translate>
{{Sketcher Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 02:40, 18 January 2021

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 vertical.
    • 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; but only lines will be selectable.
  4. Right-click or press Esc once, to exit the tool.

Scripting

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

The Scritping Sketcher constraints in Python page explains the values which can be used for Line and contains further examples on how to create constraints from Python scripts.