Sketcher ConstrainHorizontal/cs: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{UnfinishedDocu{{#translation:}}}}
{{Docnav|[[Sketcher_ConstrainVertical|Vertical]]|[[Sketcher_ConstrainParallel|Parallel]]|[[Sketcher_Workbench|Sketcher]]|IconL=Constraint_Vertical.png|IconC=Workbench_Sketcher.svg|IconR=Constraint_Parallel.png}}

{{Docnav
|[[Sketcher_ConstrainVertical|Vertical]]
|[[Sketcher_ConstrainParallel|Parallel]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainVertical.svg
|IconR=Sketcher_ConstrainParallel.svg
|IconC=Workbench_Sketcher.svg
}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/cs
{{GuiCommand/cs|Name=Constraint Horizontal|Name/cs=Constraint Horizontal|Workbenches=[[Sketcher Workbench/cs|Sketcher]], [[PartDesign Workbench/cs|PartDesign]]|MenuLocation=Sketch → Sketcher constraints → Constrain horizontally|SeeAlso=[[Constraint Vertical/cs|Constraint Vertical]]}}
|Name=Constraint Horizontal
|Name/cs=Constraint Horizontal
|Workbenches=[[Sketcher Workbench/cs|Sketcher]], [[PartDesign Workbench/cs|PartDesign]]
|MenuLocation=Sketch → Sketcher constraints → Constrain horizontally
|SeeAlso=[[Sketcher_ConstrainVertical/cs|Constraint Vertical]]
}}
</div>
</div>


Line 32: Line 47:
</div>
</div>


[[File:HorizontalConstraint1.png|left|256px]]
[[File:HorizontalConstraint1.png|500px]]
Select a line in the sketch by clicking on it.
{{Caption|Select a line in the sketch by clicking on it.}}

<br style="clear: both" />
[[File:HorizontalConstraint2.png|left|256px]]
[[File:HorizontalConstraint2.png|500px]]
The line turns dark green.
{{Caption|The line turns dark green.}}

<br style="clear: both" />
[[File:HorizontalConstraint3.png|left|256px]]
[[File:HorizontalConstraint3.png|500px]]
Apply the Horizontal Constraint by clicking on the Horizontal Constraint icon [[File:Constraint_Horizontal.png|16px]] in the Sketcher Constraints toolbar or by selecting the Constrain horizontally menu item in the Sketcher constraints sub menu of the Sketcher menu item in the Sketcher work bench (or the Part Design menu item of the Part Design work bench). The selected line is constrained to be parallel to the horizontal axis of the sketch.
{{Caption|Apply the Horizontal Constraint by clicking on the {{Button|[[File:Sketcher_ConstrainHorizontal.svg|16px]] [[Sketcher_ConstrainHorizontal|Constraint horizontal]]}} in the Sketcher Constraints toolbar or by selecting the Constrain horizontally menu item in the Sketcher constraints sub menu of the Sketch menu item in the Sketcher work bench (or the Part Design menu item of the Part Design work bench). The selected line is constrained to be parallel to the horizontal axis of the sketch.}}

<br style="clear: both" />
[[File:HorizontalConstraint4.png|left|256px]]
[[File:HorizontalConstraint4.png|500px]]
Multiple lines may be selected,
{{Caption|Multiple lines may be selected}}

<br style="clear: both" />
[[File:HorizontalConstraint5.png|left|256px]]
[[File:HorizontalConstraint5.png|500px]]
and then applying the constraint as described above, they are constrained to be parallel to the sketch horizontal axis.
{{Caption|and then applying the constraint as described above, they are constrained to be parallel to the sketch horizontal axis.}}

<br style="clear: both" />
== Scripting ==

{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Horizontal', 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.


{{Docnav|[[Sketcher_ConstrainVertical|Vertical]]|[[Sketcher_ConstrainParallel|Parallel]]|[[Sketcher_Workbench|Sketcher]]|IconL=Constraint_Vertical.png|IconC=Workbench_Sketcher.svg|IconR=Constraint_Parallel.png}}


{{Docnav
{{Sketcher Tools navi}}
|[[Sketcher_ConstrainVertical|Vertical]]
|[[Sketcher_ConstrainParallel|Parallel]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainVertical.svg
|IconR=Sketcher_ConstrainParallel.svg
|IconC=Workbench_Sketcher.svg
}}


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

Revision as of 16:57, 14 April 2022

This documentation is not finished. Please help and contribute documentation.

GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.

Constraint Horizontal

Umístění Menu
Sketch → Sketcher constraints → Constrain horizontally
Pracovní stoly
Sketcher, PartDesign
Výchozí zástupce
Nikdo
Představen ve verzi
-
Viz také
Constraint Vertical

Popis

Vazba Horizontálně zajistí, že vybraná přímka nebo přímky v obrázku budou paralelní k horizontální ose náčrtu.

The Horizontal Constraint forces a selected line or lines in the sketch to be parallel to the horizontal axis of the sketch.

Funkce

Kliknutím na ni vyberte přímku v náčrtu.

Přímka se zbarví na tmavězelenou.

Vazbu Horizontálně aplikujete kliknutím na její ikonu v panelu nástrojů Náčrtu nebo výběrem položky Vazba horizontálně v submenu Vazby v menu Náčrtu v Pracovní ploše Náčrt (nebo v menu Nákres Díl v pracovní ploše Díl). Vybraná přímka je upravena tak, aby byla paralelní s horizontální osou náčrtu.

Může být vybráno i více přímek

a potom vybrána Vazba horizontálně jak je popsáno výše, horizontálně jsou pak upraveny všechny přímky.

Select a line in the sketch by clicking on it.

The line turns dark green.

Apply the Horizontal Constraint by clicking on the Constraint horizontal in the Sketcher Constraints toolbar or by selecting the Constrain horizontally menu item in the Sketcher constraints sub menu of the Sketch menu item in the Sketcher work bench (or the Part Design menu item of the Part Design work bench). The selected line is constrained to be parallel to the horizontal axis of the sketch.

Multiple lines may be selected

and then applying the constraint as described above, they are constrained to be parallel to the sketch horizontal axis.

Scripting

Sketch.addConstraint(Sketcher.Constraint('Horizontal', 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.