Sketcher ConstrainEqual/ja: Difference between revisions

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

{{Docnav
{{Docnav
|[[Sketcher_ConstrainTangent|Tangent]]
|[[Sketcher_ConstrainTangent|Tangent]]
|[[Sketcher_ConstrainSymmetric|Symmetric]]
|[[Sketcher_ConstrainSymmetric|Symmetric]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Constraint_Tangent.svg
|IconL=Sketcher_ConstrainTangent.svg
|IconR=Constraint_Symmetric.svg
|IconR=Sketcher_ConstrainSymmetric.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}


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


==説明==
==説明==


<div class="mw-translate-fuzzy">
ConstrainEqualはライン、ポリライン、長方形に含まれる複数の線分が等しい長さになるように拘束を行います。円弧や円に対して適用した場合はその半径が等しくなるように拘束を行います。異なるタイプの幾何プリミティブ間(例えば線分と円弧)に適用することはできません。
ConstrainEqualはライン、ポリライン、長方形に含まれる複数の線分が等しい長さになるように拘束を行います。円弧や円に対して適用した場合はその半径が等しくなるように拘束を行います。異なるタイプの幾何プリミティブ間(例えば線分と円弧)に適用することはできません。
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 56: Line 65:
</div>
</div>


The example sketch below contains a number of sketch primitives (line,poly-line, rectangle, arc and circle).
The example sketch below contains a number of sketch primitives (line, poly-line, rectangle, arc and circle).


[[File:EqualConstraint1.png]]
[[File:EqualConstraint1.png]]
Line 91: Line 100:


[[File:EqualConstraint9.png]]
[[File:EqualConstraint9.png]]

== Scripting ==

{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Equal', Edge1, Edge2))}}

The [[Sketcher_scripting|Sketcher scripting]] page explains the values which can be used for {{incode|Edge1}} and {{incode|Edge2}} and contains further examples on how to create constraints from Python scripts.



{{Docnav
{{Docnav
Line 96: Line 112:
|[[Sketcher_ConstrainSymmetric|Symmetric]]
|[[Sketcher_ConstrainSymmetric|Symmetric]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Constraint_Tangent.svg
|IconL=Sketcher_ConstrainTangent.svg
|IconR=Constraint_Symmetric.svg
|IconR=Sketcher_ConstrainSymmetric.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}


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

Latest revision as of 20:24, 20 March 2022

Constraint EqualLength

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

説明

ConstrainEqualはライン、ポリライン、長方形に含まれる複数の線分が等しい長さになるように拘束を行います。円弧や円に対して適用した場合はその半径が等しくなるように拘束を行います。異なるタイプの幾何プリミティブ間(例えば線分と円弧)に適用することはできません。

操作

下のスケッチの例には複数のスケッチプリミティブ(ライン、ポリライン、長方形、円弧、円)が含まれています。

複数の線分を選択します(例えばラインと長方形の一辺)。

(スケッチャーワークベンチまたはパートデザインワークベンチにある)スケッチャーツールバのConstrainEqualアイコンをクリックするか、選択されているワークベンチ(スケッチャーまたはパートデザイン)に応じてSketchメニューアイテムまたはPart DesignメニューアイテムにあるSketcher constraintsサブメニューアイテムのConstrain Equaメニューアイテムを選択して選択アイテムに拘束を適用します。

今度はスケッチ上の円弧と円を選択します。

先ほどと同じようにConstrainEqual拘束を適用します。

今度は線分、ポリラインの全線分、そして長方形の拘束されずに残っている辺の一つを選択します。

先ほどと同じようにConstrainEqual拘束を適用します。

線分と円弧を選択します。

先ほどと同じようにConstrainEqual拘束を適用します。すると拘束アイテム同じ形状タイプ(曲線を含まない線分集合または曲線を含む線分集合)でなければならいということを示すポップアップメッセージが表示されます。

The example sketch below contains a number of sketch primitives (line, poly-line, rectangle, arc and circle).

Select two or more line segments (e.g. line and one side of the rectangle).

Click on Constrain equal in the Sketcher toolbar (in either the Sketcher or Part Design workbenches) or select the Constrain Equal menu item from the Sketcher constraints sub menu item in either the Sketch or Part Design menu item depending upon which workbench is selected (Sketcher or Part Design) to apply the constraint to the selected items.

Now select the arc and the circle in the sketch.

and apply Constrain equal as before.

Now select the line segment, all segments of the poly-line and one of the remaining unconstrained sides of the rectangle

and apply Constrain equal as before.

Select the line segment and the arc

and apply Constrain equal as before. A pop-up message indicates that the constrained items have to be of the same geometrical type (lines of zero curvature or lines of non-zero curvature).

Scripting

Sketch.addConstraint(Sketcher.Constraint('Equal', Edge1, Edge2))

The Sketcher scripting page explains the values which can be used for Edge1 and Edge2 and contains further examples on how to create constraints from Python scripts.