寸法
スケッチジオメトリおよびスケッチジオメトリと平面の間に、水平、垂直、最短距離、角度、直径、円弧長さ、半径寸法を追加します。従属寸法 (参照) または駆動寸法として寸法を指定できます。

ショートカット: d
測定ツールを使用して、グラフィック領域内のすべてのものを測定できます。
一部のツールでは、スケッチしながら寸法を指定できます。
スケッチのコンテキストメニュー (RMB) の [寸法を表示] コマンドを使用して、既存の寸法を表示することもできます。



寸法はスケッチエンティティを定義するための強力な方法です。スケッチに寸法を追加するには 2 つの方法があります。1 つ目はスケッチの作成時に寸法を追加する方法で、2 つ目は最初にスケッチジオメトリを作成してから寸法を追加する方法です。
スケッチに寸法を追加するには、ジオメトリをスケッチした後に数値を入力し、Enter キーを押します。たとえば、1 本の線を引き、2 番目の終点を選択すると、線の長さを示す白いボックスが表示されます。値を入力し、Enter を押すと寸法が割り当てられます。この方法は、ほぼすべてのスケッチツールで使えます。
長方形のように 2 次元のジオメトリを定義する場合は、まず水平寸法を入力して Enter キーを押します。入力は自動的に垂直寸法に切り替わります。
寸法を追加する 2 つ目の方法は、スケッチジオメトリの完成後に寸法を追加することです。寸法ツールを選択するか、ショートカット D を使用します。1 つまたは複数のエンティティを左クリックして寸法を適用します。カーソルを移動し、左クリックして寸法を配置します。寸法の値を入力し、Enter キーを押します。スケッチは、最初に配置した寸法に合わせて自動的にサイズが調整されます。
Onshape のスケッチ寸法は、選択したエンティティのタイプに直感的に対応します。これにより、円弧または円の外側または内側の寸法記入をシームレスに行えます。円弧または円の外側近くを左クリックして、外側の寸法を記入します。円弧または円の内側近くを左クリックして内側の寸法を記入します。寸法ツールではこれと同じ直感的な方法で、平行でない 2 本の線分の寸法を記入するときも、自動的に角度が記入されます。
寸法を編集するには、グラフィック内で寸法をダブルクリックします。新しい値を入力し、Enter を押して確定します。グラフィック領域から寸法を削除するには、削除する寸法を選択してキーボードの Delete キーを押します。寸法を使用して、他の寸法や関係によって駆動される値を表示することもできます。スケッチでは従属寸法は灰色で表示され、駆動寸法は黒で表示されます。配置によってスケッチが過剰に定義される場合は、新しい寸法を自動的に従動寸法に切り替えます。寸法の駆動状態を手動で切り替えるには、右クリックメニューを使います。

-
をクリックするか、[D] キーを押します。
- 寸法記入するエンティティ (1 つまたは複数) と、寸法の位置を選択します。
選択したエンティティつまたは複数のエンティティが強調表示され (ブラウザのみ)、寸法の配置に関するダイアログが開きます。
- 値を入力し、Enter を押して値を確定します。寸法に変数を使用することもできます。その場合は「=#」と変数名 (「=#d」など) を入力します。
You can enter negative values for dimensions (length, linear distance, and angles) to flip the direction of the entity.
下の画像は正の寸法を示しています。一番下の水平線を基準とした長方形の位置に注意してください。
次の画像は、アクティブなフィールドに入力されている負の寸法値を示しています。
値を確定すると、長方形の方向が反転します。

-
Part Studio の数値フィールドでは、式と三角関数を使用できます。
-
寸法を選択して [削除] キーを押すか、寸法を選択してコンテキストメニューから [削除] を選択します。
-
配置の寸法を編集するには、値をダブルクリックしてフィールドをアクティブにし、新しい値を入力します。[Enter] キーを押して、変更を受け入れます。
-
Except for Diameter and radius dimensions, when a new dimension value is entered, both geometric selections being dimensioned are translated by half the new input value, so that both geometric selections are translated equally. For example, when dimensioning a single line, each endpoint is translated by half the dimension value, so that both endpoints are translated equally.
-
Constrained geometry may not translate. See Working with constraints.

Single line distance
- Click the Dimension tool (
).
- Click the line.
- Drag to position the linear distance dimension.
- Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press Enter to accept the dimension value.
This is the method used to dimension length or height:
Distance between 2 lines
- Click the Dimension tool (
).
- Click the first line
- Click the second line
- Drag to position the linear distance dimension
- Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press Enter to accept the dimension value.
When dimensioning between two lines, this implies parallelism without a visual parallel constraint.

- Click the Dimension tool (
).
- Click the first corner point
- Click the second corner point, diagonal to the first.
- Drag at an angle to position the diagonal distance dimension
- Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press Enter to accept the dimension value.

- Click the Dimension tool (
).
- 円のエッジをクリックします。
- Drag into or away from the circle to position the diameter dimension.
- Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press Enter to accept the dimension value.

- Click the Dimension tool (
).
- Click the first line.
- Click the second line, at an angle to the first.
- Drag into or out of the angle to position the angle dimension.
You can also drag the dimension to the quadrant for which you want to define the angle:
- Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press Enter to accept the dimension value.
直線距離
This dimensions the shortest distance between 2 points.
- Click the Dimension tool (
).
- Click the endpoint of the first line
- Click the endpoint of the second line.
- Drag at an angle to position the direct distance dimension.
- Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press Enter to accept the dimension value.
直線距離
This dimensions the linear distance between 2 points.
- Click the Dimension tool (
).
- Click the endpoint of the first line
- Click the endpoint of the second line.
- Drag straight up/down or left/right to position the linear distance dimension.
- Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press Enter to accept the dimension value.

- Click the Dimension tool (
).
- Click the arc.
- Drag into or away from the arc to position the radius dimension.
- Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press Enter to accept the dimension value.

- Click the Dimension tool (
).
-
Click the arc’s first endpoint.
-
Click the arc’s second endpoint.
-
Click the arc.
-
Drag to position the arc length dimension.
-
Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press enter to accept the dimension value.

This dimensions the distance between 2 points on a spline or a spline point and any other sketch point.
-
Click the Dimension tool (
).
-
Click the first spline point.
-
Click the second spline point (or any other sketch point).
-
Drag to position the distance dimension.
-
Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press enter to accept the dimension value.
You can also get the direct distance between two points on a spline or a spline point and any other sketch point if you drag the cursor away at an angle to position the direct distance dimension. See Direct distance.

This dimensions the distance between a plane and any other sketch point.
-
Click the Dimension tool (
).
-
Click the sketch point.
-
Click the plane.
-
Drag to position the distance dimension.
-
Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
If a new dimension value is entered, the sketch geometry moves while the plane remains in place.
-
Press enter to accept the dimension value.

円、点、または非作図線と作図線との間に、中心線寸法を作成します。たとえば、回転操作のパーツに寸法を記入します。これらのスケッチエンティティの 1 つ間の距離寸法を開始し、作図線の反対側にマウスを移動します。作図線上でマウスを移動すると、距離寸法と中心線の寸法の状態が切り替わります。
-
Click the Dimension tool (
).
-
Click the circle or sketch point.
-
Click the Construction line. This results in a distance dimension between the 2 lines:
- Drag to the opposite side of the construction line to simultaneously toggle the state to a centerline dimension and position the centerline dimension.
- Click to simultaneously place the dimension and open its numeric value field.
-
Optionally, enter a new dimension value.
-
Press Enter to accept the dimension value.

被駆動寸法は、クリアランスや肉厚を特定の値を超えるなど、設計意図を維持するのに役立ちます。
- 既定では、寸法は駆動されます。寸法値を右クリックし、コンテキストメニューから [駆動/被駆動] を選択します。
- 駆動寸法は黒で表示され、編集できます。
- 従属寸法は薄い灰色で表示され、編集できません (必要に応じて、駆動寸法に切り替えてから編集します)。
- スケッチに追加された寸法によってスケッチが過剰定義されると、寸法は自動的に「被駆動」にされます。
- 従属寸法は、駆動寸法を追加できる任意の場所に追加できます。
- 従属寸法は、暗黙の寸法の値を反映します。ジオメトリは変更されません。
- 寸法が被駆動から駆動に切り替わると、ジオメトリが変更されます。被駆動寸法を駆動に変更するとスケッチが過剰拘束される場合は、通常どおり赤いインジケータが表示されます。

Onshape では、一部の寸法に負の値を入力できますが、すべてには入力できません。負の値を受け入れる寸法については、以下を参照してください。
Onshape では、以下に対して負の値も使用できます。- 距離寸法
- 角度寸法
- 線の長さ
- スプライン寸法
- 円弧寸法
- 半径寸法または直径寸法


- [寸法] ツールをタップします。
- 寸法記入するエンティティ (1 つまたは複数) と、寸法の位置を選択します。
寸法の配置に関するダイアログが開きます。
- 値を入力し、チェックマークを選択して値を確定します。

- タップしてコーナー点を選択します。
- 反対側のコーナー点をタップして選択します。
- 現在の値が表示され、それをタップしてテンキーを開きます。
- テンキーを使用して寸法を入力します。

- タップして、垂直線または水平線を選択します。
- 長さまたは高さの現在の値が表示され、それをタップしてテンキーを開きます。
- テンキーを使用して寸法を入力します。

- 円のエッジをタップして選択します。
- 現在の値が表示され、それをタップしてテンキーを開きます。
- テンキーを使用して寸法を入力します。

- 円弧のエッジをタップして選択します。
- 半径の現在の値が表示され、それをタップしてテンキーを開きます。
- テンキーを使用して寸法を入力します。

- タップして点を選択します。
- タップして平面を選択します。
- 現在の値が表示され、それをタップしてテンキーを開きます。
- テンキーを使用して寸法を入力します。

円、点、または非作図線と作図線との間に、中心線寸法を作成します。たとえば、回転操作のパーツに寸法を記入します。
- タップして寸法記入する点を選択します。
- 中心線として作成する作図線をタップして選択します。
点と作図線の間に寸法が設定されます。
- 作図線を交差する寸法をタッチしてドラッグします。
寸法が作図線と交差すると、作図線が中心線になり、それに応じて寸法が調整されます。

- 被駆動寸法は、クリアランスや肉厚を特定の値を超えるなど、設計意図を維持するのに役立ちます。
- 既定では、寸法は駆動されます。タップして寸法を選択し、2 本指でタップしてコンテキストメニューを表示します。コンテキストメニューでタップして寸法の ドライブ/駆動切り替え を行います。
- 駆動寸法は黒で表示され、編集できます。
- 従属寸法は明るい灰色で表示され、編集することができます (従属寸法を駆動寸法に切り替えてから、必要に応じて編集します)。
- スケッチに追加された寸法によってスケッチが過剰定義されると、寸法は自動的に「被駆動」にされます。
- 従属寸法は、駆動寸法を追加できる任意の場所に追加できます。
- 従属寸法は、暗黙の寸法の値を反映します。ジオメトリは変更されません。
- 寸法が被駆動から駆動に切り替わると、ジオメトリが変更されます。被駆動寸法を駆動に変更するとスケッチが過剰拘束される場合は、通常どおり赤いインジケータが表示されます。


- [寸法] ツールをタップします。
- 寸法記入するエンティティ (1 つまたは複数) と、寸法の位置を選択します。
寸法の配置に関するダイアログが開きます。
- 値を入力し、チェックマークを選択して値を確定します。

- タップしてコーナー点を選択します。
- 反対側のコーナー点をタップして選択します。
- 現在の値が表示され、それをタップしてテンキーを開きます。
- テンキーを使用して寸法を入力します。

- タップして、垂直線または水平線を選択します。
- 長さまたは高さの現在の値が表示され、それをタップしてテンキーを開きます。
- テンキーを使用して寸法を入力します。

- 円のエッジをタップして選択します。
- 現在の値が表示され、それをタップしてテンキーを開きます。
- テンキーを使用して寸法を入力します。

- 円弧のエッジをタップして選択します。
- 半径の現在の値が表示され、それをタップしてテンキーを開きます。
- テンキーを使用して寸法を入力します。

- タップして点を選択します。
- タップして平面を選択します。
- 現在の値が表示され、それをタップしてテンキーを開きます。
- テンキーを使用して寸法を入力します。

円、点、または非作図線と作図線との間に、中心線寸法を作成します。たとえば、回転操作のパーツに寸法を記入します。
- タップして寸法記入する点を選択します。
- 中心線として作成する作図線をタップして選択します。
点と作図線の間に寸法が設定されます。
- 作図線を交差する寸法をタッチしてドラッグします。
寸法が作図線と交差すると、作図線が中心線になり、それに応じて寸法が調整されます。

- 被駆動寸法は、クリアランスや肉厚を特定の値を超えるなど、設計意図を維持するのに役立ちます。
- 既定で寸法はドライビング (駆動) です。寸法をダブルタップしてテンキーを開き、ドリブン/ドライビング ボタンをタップして寸法タイプを切り替えます。ボタンには、選択した寸法のタイプが表示されます。ボタンをタップすると、反対の寸法タイプに切り替わります。
- 駆動寸法は黒で表示され、編集できます。
- 従属寸法は明るい灰色で表示され、編集することができます (従属寸法をドライビングに切り替えてから、必要に応じて編集します)。
- スケッチに追加された寸法によってスケッチが過剰定義されると、寸法は自動的に「被駆動」にされます。
- 従属寸法は、駆動寸法を追加できる任意の場所に追加できます。
- 従属寸法は、暗黙の寸法の値を反映します。ジオメトリは変更されません。
- 寸法が被駆動から駆動に切り替わると、ジオメトリが変更されます。被駆動寸法を駆動に変更するとスケッチが過剰拘束される場合は、通常どおり赤いインジケータが表示されます。