自動推測
OnShape スケッチエディタでは、特定のエンティティに拘束を自動的に割り当てることができます。たとえば、線を作成し、原点の上の終点の 1 つにカーソルを置くと、その終点と原点の間の垂直方向の推測を示す点が表示されます。
スケッチする場合、Onshape ではエンティティ間や原点と別のエンティティとの水平位置合わせおよび垂直位置合わせ用の推測を表示します。場合によっては、カーソルが別のエンティティの近くを移動し、2 つのエンティティ間に推測を「ウェイクアップ」させるときに推測が発生します。一般に推測をウェイクアップさせるものの中には、水平、垂直、中点、平行、および一致が使用されます。



Constraints are added to a sketch either through automatic inferencing or manually.
Automatic inferencing is a quick way to add basic constraints while sketching. It applies to items within the active sketch or entities of the face the sketch is on
Hover over one or more sketch entities with the cursor to wake up inference points.
The type of inferred constraint it is suggesting is shown below the cursor. For vertices and midpoints, it indicates with a yellow highlight. For vertical or horizontal constraints, it indicates with an orange dashed line.
Left-click while these indicators are showing to accept the inferred constraint.
Inferencing is enabled by default but can be temporarily disabled by holding down the Shift key.
Releasing the Shift key makes automatic inferencing available again.
Drag existing sketch entities to utilize automatic inferencing after placement.
For example, dragging the center point of a circle vertically to the origin automatically adds a vertical constraint.
You can also make constraints manually. To add one constraint at a time, pre-select the sketch entities to constrain, then click the constraint that you want in the toolbar.
To add multiple constraints of the same type, select the constraint from the toolbar first, then click on the sketch geometry to constrain.
his keeps the constraint active until it is deselected.
To evaluate the sketch’s definition, there are a couple methods for the constraints you have already applied. To show the constraints applied to an individual sketch entity, hover over it with the cursor.
To see what entities a constraint is applied to, hover the cursor over the constraint icon.
This highlights the sketch geometry associated with that constraint.
Press and hold the Shift key while moving the cursor to retain visible constraint icons.
This makes it easier to select them. Show all constraints by checking Show constraints in the sketch dialog.
Remove a constraint by left-clicking the constraint icon in the graphics area and pressing the Delete key.
Constraint icons are generally either blue or white.
A white constraint icon indicates a constraint between entities within the same sketch.
A blue constraint icon indicates a constraint that is associated with something outside of the sketch, such as an origin or edge of a previous sketch or feature.
手順
- エンティティ間で垂直拘束を含む 2 本の線を作成します。
- 推測が「ウェイクアップ」するまでカーソルを線の近くに移動させます。
- 線を描きます。
スケッチする場合、Onshape では他のスケッチエンティティとの関係を示します。下図では、下線 (青) が描かれます。他の線に平行な場合は点線になり、リレーションがある場合はそれを表示するために他のスケッチエンティティがオレンジで強調表示されます。(この例では、平行拘束アイコンも可視化されています。)
自動推測を抑制するには、マウス操作時に Shift キーを押します。