Sketcher ConstrainHorizontal/ru: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{UnfinishedDocu{{#translation:}}}}
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/ru
{{Docnav/ru
|[[Sketcher_ConstrainVertical/ru|Vertical]]
|[[Sketcher_ConstrainVertical/ru|Ограничение вертикальности]]
|[[Sketcher_ConstrainParallel/ru|Parallel]]
|[[Sketcher_ConstrainParallel/ru|Ограничение параллельности]]
|[[Sketcher_Workbench/ru|Sketcher]]
|[[Sketcher_Workbench/ru|Верстак "Sketcher"]]
|IconL=Constraint_Vertical.svg
|IconL=Sketcher_ConstrainVertical.svg
|IconR=Sketcher_ConstrainParallel.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
|IconR=Constraint Parallel.svg
}}
}}
</div>
</div>
Line 14: Line 14:
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/ru
{{GuiCommand/ru
|Name/ru=Ограничение горизонтальности
|Name=Constraint Horizontal
|Name=Sketcher_ConstrainHorizontal
|Name/ru=Constraint Horizontal
|MenuLocation=Sketch → Ограничения эскиза → Ограничение горизонтальности
|Workbenches=[[Sketcher Workbench/ru|Sketcher]]
|Workbenches=[[Sketcher_Workbench/ru|Sketcher]]
|MenuLocation=Sketch → Ограничения эскиза → Ограничения горизонтальности
|Shortcut={{KEY|H}}
|Shortcut={{KEY|H}}
|SeeAlso=[[Sketcher ConstrainVertical/ru|Ограничения вертикальности]]
|SeeAlso=[[Sketcher_ConstrainVertical/ru|Ограничение вертикальности]]
}}
}}
</div>
</div>


<span id="Description"></span>
==Описание==
==Описание==


<div class="mw-translate-fuzzy">
Горизонтальное ограничение заставляет выбранную линию или линии в эскизе быть параллельными горизонтальной оси эскиза.
Горизонтальное ограничение заставляет выбранную линию или линии в эскизе быть параллельными горизонтальной оси эскиза.
</div>


{{Version|1.0}}: In most cases it is advisable to use the combined [[Sketcher_ConstrainHorVer|Sketcher ConstrainHorVer]] tool instead.
==Использование==

<span id="Usage"></span>
==Применение==

See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].

===[[Sketcher_Workbench#Continue_modes|Continue mode]]===


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
[[File:HorizontalConstraint1.png|left|256px]]
[[File:HorizontalConstraint1.png|500px]]
Выберите линию на эскизе, нажав на нее.
{{Caption|Выберите отрезок на эскизе, кликнув по нему.}}
<br style="clear: both" />
[[File:HorizontalConstraint2.png|left|256px]]
Линия становится тёмно-зелёной.
<br style="clear: both" />
[[File:HorizontalConstraint3.png|left|256px]]
Примените Horizontal Constraint, кликнув иконку Horizontal Constraint [[File:Constraint_Horizontal.svg|16px]] на панели инструментов Sketcher Constraints или выбрав пункт меню Constrain horizontally в подменю Sketcher constraints меню Sketcher верстака Sketcher (или меню Part Design верстака Part Design). Выделенная линия ограничится быть параллельной горизонтальной линии эскиза.
<br style="clear: both" />
[[File:HorizontalConstraint4.png|left|256px]]
Можно выделить несколько линий,
<br style="clear: both" />
[[File:HorizontalConstraint5.png|left|256px]]
и затем, применив к ним ограничение, как описано выше, они ограничатся быть параллельными горизонтальной оси эскиза.
<br style="clear: both" />
</div>
</div>


===Run-once mode===
[[File:HorizontalConstraint2.png|500px]]
{{Caption|The line turns dark green.}}


# Do one of the following:
[[File:HorizontalConstraint3.png|500px]]
#* Select two or more points.
{{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 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.}}
#* Select one or more lines. Points can be included in the selection, but will be ignored.
# Invoke the tool as explained above, or with the following additional option:
#* {{Version|1.0}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|[[Image:Sketcher_ConstrainHorizontal.svg|16px]] Constrain horizontal}} option from the context menu.
# Depending on the selection one or more constraints are added.


<span id="Scripting"></span>
[[File:HorizontalConstraint4.png|500px]]
==Программирование==
{{Caption|Multiple lines may be selected}}


{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Horizontal', Line))}}
[[File:HorizontalConstraint5.png|500px]]
{{Caption|and then applying the constraint as described above, they are constrained to be parallel to the sketch horizontal axis.}}


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">
{{Docnav/ru
{{Docnav/ru
|[[Sketcher_ConstrainVertical/ru|Vertical]]
|[[Sketcher_ConstrainVertical/ru|Ограничение вертикальности]]
|[[Sketcher_ConstrainParallel/ru|Parallel]]
|[[Sketcher_ConstrainParallel/ru|Ограничение параллельности]]
|[[Sketcher_Workbench/ru|Sketcher]]
|[[Sketcher_Workbench/ru|Верстак "Sketcher"]]
|IconL=Constraint_Vertical.svg
|IconL=Sketcher_ConstrainVertical.svg
|IconR=Constraint Parallel.svg
|IconR=Sketcher_ConstrainParallel.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}
</div>


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

Latest revision as of 14:54, 23 April 2024

Ограничение горизонтальности

Системное название
Sketcher_ConstrainHorizontal
Расположение в меню
Sketch → Ограничения эскиза → Ограничение горизонтальности
Верстаки
Sketcher
Быстрые клавиши
H
Представлено в версии
-
См. также
Ограничение вертикальности

Описание

Горизонтальное ограничение заставляет выбранную линию или линии в эскизе быть параллельными горизонтальной оси эскиза.

introduced in version 1.0: In most cases it is advisable to use the combined Sketcher ConstrainHorVer tool instead.

Применение

See also: Drawing aids.

Continue mode

Выберите отрезок на эскизе, кликнув по нему.

Run-once mode

  1. Do one of the following:
    • Select two or more points.
    • Select one or more lines. Points can be included in the selection, but will be ignored.
  2. Invoke the tool as explained above, or with the following additional option:
  3. Depending on the selection one or more constraints are added.

Программирование

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.