Sketcher ConstrainVertical: Difference between revisions

From FreeCAD Documentation
(<translate>)
m (wiki markup)
(23 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<languages/>
<translate>
<translate>
<!--T:7-->
{{GuiCommand|Name=Constraint Vertical|Workbenches=[[Sketcher Workbench|Sketcher]], [[PartDesign Workbench|PartDesign]]|MenuLocation=Sketch → Sketcher constraints → Constrain vertically|SeeAlso=[[Constraint Horizontal]]}}
{{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-->
====Description====
{{GuiCommand
Creates a vertical constraint to the selected lines or polylines elements. More than one object can be selected.
|Name=Sketcher ConstrainVertical
|MenuLocation=Sketch → Sketcher constraints → Constrain vertically
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|Shortcut={{KEY|V}}
|SeeAlso=[[Sketcher_ConstrainHorizontal|Sketcher Constraint Horizontal]]
}}


==Description== <!--T:2-->
====Usage====

See [[Constraint Horizontal]]
<!--T:4-->
{{clear}}
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.

==Usage== <!--T:3-->

<!--T:5-->
# 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==

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

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.

<!--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:}}}}
<languages/>
{{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.