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)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav
|[[Sketcher_ConstrainPointOnObject|Point On Object]]
|[[Sketcher_ConstrainPointOnObject|Point On Object]]
Line 37: Line 38:
# 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==

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

The [[Scripting_Sketcher_constraints_in_Python|Scripting 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.



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">

Revision as of 20:09, 23 January 2021

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