Sketcher ConstrainHorizontal/ja: Difference between revisions

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

{{Docnav
{{Docnav
|[[Sketcher_ConstrainHorVer|Horizontal/vertical]]
|[[Sketcher_ConstrainVertical|Vertical]]
|[[Sketcher_ConstrainVertical|Vertical]]
|[[Sketcher_ConstrainParallel|Parallel]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Constraint_Vertical.png
|IconL=Sketcher_ConstrainHorVer.svg
|IconR=Sketcher_ConstrainVertical.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
|IconR=Constraint Parallel.svg
}}
}}


<div class="mw-translate-fuzzy">
{{GuiCommand/jp|Name=Sketcher ConstrainHorizontal|Workbenches=[[Sketcher Workbench/jp|スケッチャー]], [[PartDesign Workbench/jp|パートデザイン]]|MenuLocation=Sketch → Sketcher constraints → Constrain horizontally|SeeAlso=[[Constraint Vertical/jp|Constraint Vertical]]}}
{{GuiCommand/ja
|Name=Sketcher ConstrainHorizontal
|Name/ja=Sketcher ConstrainHorizontal
|Workbenches=[[Sketcher Workbench/ja|スケッチャー]], [[PartDesign Workbench/ja|パートデザイン]]
|MenuLocation=Sketch → Sketcher constraints → Constrain horizontally
|SeeAlso=[[Constraint Vertical/ja|Constraint Vertical]]
}}
</div>


<span id="Description"></span>
==説明==
==説明==


<div class="mw-translate-fuzzy">
HorizontalConstraintは選択された線または画像の辺がスケッチの水平軸と平行なるように拘束を行います。
HorizontalConstraintは選択された線または画像の辺がスケッチの水平軸と平行なるように拘束を行います。
</div>

{{Version|1.0}}: In most cases it is advisable to use the combined [[Sketcher_ConstrainHorVer|Sketcher ConstrainHorVer]] tool instead.


<span id="Usage"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==使用方法==
==使用方法==
</div>
</div>


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

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

<div class="mw-translate-fuzzy">
[[File:HorizontalConstraint1.png|left|256px]]
[[File:HorizontalConstraint1.png|left|256px]]
スケッチ上の線をクリックして選択します。
スケッチ上の線をクリックして選択します。
Line 34: Line 54:
上で示したように線を選択して拘束を適用すると、それらがスケッチの水平軸に平行になるように拘束されます。
上で示したように線を選択して拘束を適用すると、それらがスケッチの水平軸に平行になるように拘束されます。
<br style="clear: both" />
<br style="clear: both" />

<div class="mw-translate-fuzzy">
[[Category:Sketcher]]
</div>
</div>


===Run-once mode===
{{Sketcher Tools navi}}

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

== 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_ConstrainHorVer|Horizontal/vertical]]
|[[Sketcher_ConstrainVertical|Vertical]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainHorVer.svg
|IconR=Sketcher_ConstrainVertical.svg
|IconC=Workbench_Sketcher.svg
}}


{{Sketcher_Tools_navi{{#translation:}}}}
{{Userdocnavi}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 16:31, 13 May 2024

Sketcher ConstrainHorizontal

メニューの場所
Sketch → Sketcher constraints → Constrain horizontally
ワークベンチ
スケッチャー, パートデザイン
デフォルトのショートカット
None
バージョンで導入
-
も参照してください
Constraint Vertical

説明

HorizontalConstraintは選択された線または画像の辺がスケッチの水平軸と平行なるように拘束を行います。

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

スケッチ上の線をクリックして選択します。

線が暗緑色に変わります。

Sketcher ConstraintsツールバーのHorizontalConstraintアイコンをクリックするか、スケッチャーワークベンチのSketcherメニューアイテム(あるいはパートデザインワークベンチのPart Designメニューアイテム)にあるSketcher constraintsサブメニューのConstrain horizontallyメニューアイテムを選択してHorizontalConstraintを適用します。すると選択された線がスケッチの水平軸に平行になるように拘束されます。

複数の線を選択することもできます。

上で示したように線を選択して拘束を適用すると、それらがスケッチの水平軸に平行になるように拘束されます。

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.

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.