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)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav
|[[Sketcher_ConstrainTangent|Tangent]]
|[[Sketcher_ConstrainTangent|Tangent]]
Line 10: Line 11:


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


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


Line 19: Line 27:
</div>
</div>


==Usage==
<div class="mw-translate-fuzzy">
==操作==
下のスケッチの例には複数のスケッチプリミティブ(ライン、ポリライン、長方形、円弧、円)が含まれています。

[[File:EqualConstraint1.png|256px]]

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

[[File:EqualConstraint2.png|256px]]

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

[[File:EqualConstraint3.png|256px]]

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

[[File:EqualConstraint4.png|256px]]

先ほどと同じようにConstrainEqual[[File:Constraint_EqualLength.png|16px]]拘束を適用します。

[[File:EqualConstraint5.png|256px]]

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

[[File:EqualConstraint6.png|256px]]

先ほどと同じようにConstrainEqual[[File:Constraint_EqualLength.png|16px]]拘束を適用します。

[[File:EqualConstraint7.png|256px]]

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

[[File:EqualConstraint8.png|256px]]

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

[[File:EqualConstraint9.png|256px]]
</div>

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

[[File:EqualConstraint1.png]]

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

[[File:EqualConstraint2.png]]

Click on {{Button|[[File:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|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.

[[File:EqualConstraint3.png]]

Now select the arc and the circle in the sketch.

[[File:EqualConstraint4.png]]

and apply {{Button|[[File:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|Constrain equal]]}} as before.

[[File:EqualConstraint5.png]]

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

[[File:EqualConstraint6.png]]

and apply {{Button|[[File:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|Constrain equal]]}} as before.


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


===[[Sketcher_Workbench#Continue_modes|Continue mode]]===
Select the line segment and the arc


# Make sure there is no selection.
[[File:EqualConstraint8.png]]
# There are several ways to invoke the tool:
#* Press the {{Button|[[Image:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|Constrain equal]]}} button.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ConstrainEqual.svg|16px]] Constrain equal}} option from the menu.
#* {{Version|1.0}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|Constrain → [[Image:Sketcher_ConstrainEqual.svg|16px]] Constrain equal}} option from the context menu.
#* Use the keyboard shortcut: {{KEY|E}}.
# The cursor changes to a cross with the tool icon.
# Select two edges of the same type.
# A constraint is added.
# Optionally keep creating constraints.
# To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.


===Run-once mode===
and apply {{Button|[[File:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|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).


# Select two or more edges of the same type.
[[File:EqualConstraint9.png]]
# 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_ConstrainEqual.svg|16px]] Constrain equal}} option from the context menu.
# Depending on the selection one or more constraints are added.


== Scripting ==
== Scripting ==
Line 98: Line 56:
{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Equal', Edge1, Edge2))}}
{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Equal', Edge1, Edge2))}}


The [[Scripting_Sketcher_constraints_in_Python|Scripting Sketcher constraints in Python]] 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.
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.




Line 110: Line 68:
}}
}}


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

Latest revision as of 15:02, 23 April 2024

Constraint EqualLength

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

説明

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

Usage

See also: Drawing aids.

Continue mode

  1. Make sure there is no selection.
  2. There are several ways to invoke the tool:
    • Press the Constrain equal button.
    • Select the Sketch → Sketcher constraints → Constrain equal option from the menu.
    • introduced in version 1.0: Right-click in the 3D view and select the Constrain → Constrain equal option from the context menu.
    • Use the keyboard shortcut: E.
  3. The cursor changes to a cross with the tool icon.
  4. Select two edges of the same type.
  5. A constraint is added.
  6. Optionally keep creating constraints.
  7. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Run-once mode

  1. Select two or more edges of the same type.
  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('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.