Sketcher ConstrainLock

From FreeCAD Documentation
Revision as of 16:28, 6 March 2024 by Roy 043 (talk | contribs)
This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.

Sketcher ConstrainLock

Menu location
Sketch → Sketcher constraints → Constrain lock
Workbenches
Sketcher
Default shortcut
K L
Introduced in version
-
See also
Sketcher Constrain Block

Description

The Sketcher ConstrainLock tool applies horizontal distance and vertical distance constraints to points. If a single point is selected the constraints reference the origin of the sketch. If two or more points are selected the constraints reference the last selected point.

Usage

See also: Drawing aids.

  1. Select one or more points (optional if the tool will run in continue mode).
  2. There are several ways to invoke the tool:
    • Press the Constrain lock button.
    • Select the Sketch → Sketcher constraints → Constrain lock option from the menu.
    • introduced in version 0.22: Right-click in the 3D view and select the Dimension → Constrain lock option from the context menu.
    • Use the keyboard shortcut: K then L.
  3. If the tool runs in continue mode:
    1. The cursor changes to a white cross with the tool icon.
    2. Optionally keep selecting points. You can only select one point at a time now.
    3. To finish, right-click or press Esc, or start a another constraints or geometries tool.

Notes

  • There is no automatic prompt to edit the constraint values. If required a constraint value can be edited manually:
    • Double-click the constraint value in the 3D view.
    • Double-click the constraint in the Sketcher Dialog.
    • Right-click the constraint in the Sketcher Dialog and select Change value from the context menu.

Scripting

This tool is not a constraint of its own. See the Sketcher scripting page for details and examples on how to create horizontal distance and vertical distance constraints from Python scripts.