Sketcher ConstrainVertical/cs: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav
|[[Sketcher_ConstrainPointOnObject|Point On Object]]
|[[Sketcher_ConstrainPointOnObject|Point on object]]
|[[Sketcher_ConstrainHorizontal|Horizontal]]
|[[Sketcher_ConstrainHorizontal|Horizontal]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Constraint_PointOnObject.svg
|IconL=Sketcher_ConstrainPointOnObject.svg
|IconR=Sketcher_ConstrainHorizontal.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
|IconR=Constraint_Horizontal.svg
}}
}}


Line 32: Line 33:
# Select the lines or vertices to be constrained vertically
# Select the lines or vertices to be constrained vertically
# To invoke the vertical constraint command:
# To invoke the vertical constraint command:
#* Press the {{Button|[[File:Sketcher_ConstrainVertical.svg|16px]] [[Sketcher_ConstrainVertical|Constrain vertical]]}}.
#* Press the {{Button|[[File:Sketcher_ConstrainVertical.svg|16px]] [[Sketcher_ConstrainVertical|Constrain vertically]]}} button.
#* Use the {{KEY|V}} keyboard shortcut
#* Use the {{KEY|V}} keyboard shortcut
#* Use the {{MenuCommand|Sketch → Sketcher constraints → Constrain vertically}} entry in the Sketch dropdown menu
#* 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; but only lines will be selectable.
# 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.
# Right-click or press {{KEY|Esc}} once, to exit the tool.

==Scripting==

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



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 42: Line 50:
</div>
</div>


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

Revision as of 20:16, 20 March 2022

Constraint Vertical

Umístění Menu
Sketch → Sketcher constraints → Constrain vertically
Pracovní stoly
Náčrt
Výchozí zástupce
V
Představen ve verzi
-
Viz také
Vazba vodorovnosti

Popis

Na vybrané přímce nebo lomené čáře vytvoří vazbu svislosti. Může být vybrán jeden nebo více objektů.

Použití

  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.