拘束の操作
拘束は、スケッチの作成中、または編集用に開いているときに使用でき、表示することができます。

(たとえば、あるスケッチのエンティティを別のスケッチで使用する場合) 2 つのスケッチのエンティティ間に適用された拘束は、青色の背景で区別されます。拘束は手動で適用でき、スケッチとしてジオメトリが作成された場合に作成される拘束もあります。カーソルを置くと、参照される拘束の背景が濃い青になります。
上図の使用拘束 (青い背景) は、長方形のスケッチの頂点を、円のスケッチ内の円の中心点で拘束します。



拘束スケッチツールを使用すると、スケッチの作成中や編集用に開いているときに、拘束を表示したり変更したりできます。たとえば、あるスケッチのエンティティを別のスケッチで使用する場合など、2 つのスケッチのエンティティ間に適用された拘束は、青色の背景で区別されます。拘束は手動で適用でき、スケッチとしてジオメトリが作成された場合に作成される拘束もあります。カーソルを合わせると、参照先の拘束の背景は濃い青色になります。
一致、同心円、平行、接線、水平、垂直、直立、等号、中点、法線、貫通、対称、固定、曲率などの複数の拘束を使用できます。拘束は、推測を使用して自動的にスケッチに追加することも、ツールバーを使用して手動で追加することもできます。
この例では、垂直の作図線と円の間に中点制約が追加されています。円の中点と作図線を選択します。スケッチツールバーの [中点拘束] をクリックします。このプロセスはさまざまな制約に対してエミュレートできます。または、最初にスケッチツールバーから [中点拘束] ツールを選択し、次に構築線と円を選択することもできます。

図面の拘束を適用するには、次のいずれかを行います。
-
メニューから拘束を選択し (または対応するショートカットキーを使用)、スケッチで拘束を適用するエンティティを選択します。
-
スケッチエンティティを選択し、ツールバーの拘束メニューで拘束をクリックします。
ツールバーの拘束メニューでは、次の拘束を使用できます。
-
一致 - 2 つ以上のスケッチエンティティがスケッチ内の同じ場所を共有するようにします。
-
同心円 - 任意の点を円弧または円の中心と一致させ、円弧と円が中心点を共有するようにします。
-
平行 - 2 本以上の線を平行にします。
-
接線 - 2 つのスケッチエンティティ間、またはスケッチエンティティと平面間を正接関係にします。
-
水平 - 1 本または複数の線または点のセットを水平になるように拘束します。
-
垂直 - 1 本または複数の線または点のセットを垂直になるように拘束します。
-
直角 - 2 本の線を直角にします。
-
等しい - 複数の線の長さを等しくするか、複数の円弧を同じ半径にします。
-
中点 - スケッチ点を線または円弧の中点に拘束します。
-
法線 - 曲線と直線、または曲線と平面を直角にします。
-
貫通 - スケッチエンティティをアクティブスケッチ平面以外の別のエンティティと一致させます。
-
対称 - 同じタイプの 2 つのエンティティを、線、平面、または直線エッジに対して対称にします。
-
固定 - スケッチエンティティをスケッチ平面に固定し、移動しないようにします。
-
曲率- スケッチスプライン (または円錐) と周囲のジオメトリの間に曲率連続トランジションを作成します。

スケッチを開いた状態で、線や円弧などのスケッチエンティティの上にカーソルを置くと、そのエンティティの拘束が表示されます。エンティティの上でカーソルを動かすと、強調表示されたエンティティのみ拘束が表示されます。すべての拘束を表示したままにするには、[Shift] キーを押しながらマウスを動かします。
エンティティは、ホバー時にオレンジ色で強調表示されます。ただし、参照拘束は例外で、ホバー時には青色の背景および濃い青色の背景で表示されます。拘束を選択し、座標エンティティも強調表示されるように、関連するエンティティは黄色で強調表示されます。

これらの拘束は、ツールバーの [拘束] セクションでは使用できませんが、以下に説明するように、特定のアクションの間に自動的に作成されます。
-
四半円点 - 楕円とその楕円の長軸または短軸のいずれかに一致する点を拘束します。推測によって、任意のアイテムをドラッグするか、楕円上の点の 1 つに任意のアイテムを配置することによって行うことができます。
-
使用 - あるスケッチのスケッチエンティティを別のスケッチのエンティティに拘束します。使用ツールを選択してから、別のスケッチまたはフィーチャーのエンティティ (スケッチエンティティ、面、またはエッジ) を選択します。
-
交差 - 貫通拘束
を使用して、開いた曲線の終点 ([交点] ツールを使用した結果) を、交差面のエッジ上に配置するように拘束します。閉じた曲線の場合、スケッチエンティティは交差拘束で拘束されます。

スケッチエンティティの色は、次のような拘束状態を示します。
- 青は拘束状態を意味します。
- 黒は完全に拘束された状態を意味します。
- 赤は拘束の問題 (過剰拘束) を意味します。
拘束アイコンの色は、制約された状態を示します。
- グレー地に黒ははっきりしていることを意味します。
- 赤地に白は問題を示します。
- 選択すると、完全に拘束されていないスケッチ点 (青と赤) が、重なり合っている完全に拘束されたスケッチ点 (黒) よりも優先されます。
寸法や拘束を追加すると、スケッチがさらに拘束されます。エンティティをドラッグすることで、どのような拘束や寸法を追加すればよいかわかりやすくなります。

View and filter the sketch constraints and dimensions in order to analyze them and correct any sketch constraint errors.
Accessing the Constraint manager
From the Sketch dialog:
-
Click the Show sketch diagnostic tools icon (
).
-
Click Constraint manager.
The Constraint manager dialog opens:
Using the Constraint manager
From the Constraint manager dialog, you can do the following:
-
Filters - Collapse/Expand all dialog sections at once (Type, Mode, Status).
-
Automatically select constraints - When toggled on (default), any constraint selected in the Constraint manager dialog places a yellow bounding box around corresponding constraints in the sketch. When off, constraints will not have a bounding box placed around them (they are not selected).
This option is useful if you want to select only those constraints from a specific part of the sketch. For example, toggle this option off. Select the constraints Type you want to locate in the portion of your sketch (for example, coincident constraints in the example below). Then create a selection box around a portion of your sketch (a rectangle in the example below). Only constraints for that section display bounding boxes around them and are available from the Entities and constraints list (see below).
Disabling "Automatically select constraints" and then box-selecting the rectangle in the sketch (left). Once selected, the filters only apply to the selected sketch entity. In the example here, coincident constraints are only shown for the previously-selected rectangle (right).
-
Type - Select from a list of available constraints. For example, selecting Coincident places a yellow bounding box around all coincident constraints in the sketch (provided Automatically select constraints is enabled).
-
Mode - Select from the following 3 modes:
-
Internal - Selects constraints from the current sketch.
-
External - Selects constraints from external sources.
-
In context - Selects constraints referenced in context
-
-
Status - Select from the following 3 statuses:
-
Driven - Driven constraints. When selected, driven constraints are highlighted yellow. If they are under-constrained, they are highlighted a darker blue.
-
Solved - Solved constraints. When selected, solved constraints are highlighted yellow. If they are under-constrained, they are highlighted a darker blue.
-
Errors - Constraints in error. When selected, constraints in error are highlighted a darker red,
-
-
Sort by constraint - Sorts the Entities and constraints list below by constraint first, then entity second.
-
Sort by entity - Sorts the Entities and constraints list below by entity first, then constraint second.
-
Entities and constraints list - Displays all selected constraints, depending on the filter selections in the dialog. Hovering over a constraint or entity in the list highlights it in the sketch. From this list, you can:
-
Delete constraint (
) - Deletes the constraint from the sketch.
-
Remove selection (
) - Removes the constraint from the Entities and constraints list.
Sort by constraint (left); Sort by entity (right)
Right-click on a constraint or entity in the Entities and constraints list to access the following commands:
-
Delete constraint/entity - Deletes the selection (constraint or entity)
-
Zoom to selection - Zooms in to the selection (constraint or entity)
-
Hide external references - Hides all externally referenced constraints
-
Clear all - Clears all constraints from the Entities and constraints list
-
-
-
Delete all button - Deletes all selected constraints from the sketch.
Turning Constraint manager off
To turn off the Constraint manager, either:
-
Click X at the top right corner of the Constraint manager dialog.
-
Click the Show sketch diagnostic tools icon (
) and select Turn constraint manager off:
Tips
-
Select as many types, modes and statuses from the dialog to filter the constraints to what is selected. These filters can be used in any combination.
-
If Show constraints and Show errors are disabled in the Sketch dialog, hovering over the constraint in the Entities and constraints list displays only that constraint (and related entities) in the sketch:
-
Selecting an entity in the Entities and constraints list highlights the entity in light yellow:
-
Constraint manager also works with sketches in the Sheet metal flat pattern view:

拘束アイコンを操作することができます。
- アイコンまたはアイコンのグループをクリックし、別の場所にドラッグします。
- 1 つの拘束アイコンの上にカーソルを合わせると、強調表示されているエンティティが表示されます。これは、拘束が適用されていることを示します。
- 拘束を削除する: 拘束アイコンを 1 つクリックして Delete キーを押すか、コンテキストメニューから [削除] を選択します。
- [スケッチ] ダイアログで、[拘束を表示] をオンにして、スケッチに定義されているすべての拘束を表示します。
- 矛盾する拘束は、赤い背景に白い記号として表示されます。
スケッチでは、曲線が推測をスナップすると、マウスカーソルの横に拘束インジケータが表示されます。

拘束を追加、適用、編集することで、Onshape でのパーツの定義が容易になります。拘束は、スケッチの作成中、または編集用に開いたときに、スケッチダイアログに一覧表示されます。
スケッチ内のエンティティ間、または 2 つ以上のスケッチのエンティティ間に拘束を適用できます (たとえば、別のスケッチ内の 1 つのスケッチからエンティティを 使用 する場合)。拘束は手動で適用でき、スケッチとしてジオメトリが作成された場合に作成される拘束もあります。自動的に作成される拘束の詳細は、自動推測を参照してください。
スケッチダイアログで、リスト内の拘束をタップして、関連するスケッチジオメトリを強調表示します。たとえば、2 本の線が互いに水平に拘束されている場合に、水平拘束をタップすると、両方の線が強調表示されます。
拘束を追加、適用、編集して、Onshape でパーツを定義しやすくします。拘束は、スケッチの作成中、または編集用に開いている場合にのみ使用でき、表示することができます。
モバイルデバイスでの特定の拘束の使用の詳細は、特定の拘束のトピックを参照してください。