Inferencia automática
El editor de bocetos de Onshape tiene la capacidad de asignar restricciones a determinadas entidades automáticamente. Por ejemplo, al crear una línea y colocar el cursor sobre uno de los puntos finales por encima del origen, aparecerá una línea punteada que indica una inferencia vertical entre ese extremo y el origen.
Al realizar bocetos, Onshape muestra inferencias para la alineación horizontal y vertical entre una entidad y el origen y/o otra entidad. En algunos casos, la inferencia solo ocurre cuando el cursor se mueve cerca de otra entidad para «despertar» la inferencia entre las dos entidades. Algunas inferencias comúnmente utilizadas para «despertar» son: horizontal, vertical, de punto medio, paralela y coincidente.
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.
Pasos
- Cree dos líneas con una restricción perpendicular entre ellas.
- Mueva el cursor cerca de la línea hasta que la inferencia «despierte».
- Dibuje una línea.
Al crear el boceto, Onshape indica las relaciones con otras entidades del boceto. En la siguiente ilustración, la línea inferior (azul) es la que se dibuja. Cuando es paralela a la otra línea, se convierte en una línea punteada, y la otra se resalta en naranja para mostrar que hay una relación presente (el icono de restricción paralela también es visible en este ejemplo).
Para suprimir las inferencias automáticas, pulse la tecla Mayús cuando utilice el ratón.