Sketcher ConstrainLock: Difference between revisions

From FreeCAD Documentation
(Description)
No edit summary
Line 25: Line 25:


<!--T:5-->
<!--T:5-->
The [[Image:Sketcher_ConstrainLock.svg|24px]] [[Sketcher_ConstrainLock|Sketcher ConstrainLock]] tool applies [[File:Sketcher_ConstrainDistanceX.svg|16px]] [[Sketcher_ConstrainDistanceX|Horizontal distance]] and [[File:Sketcher_ConstrainDistanceY.svg|16px]] [[Sketcher_ConstrainDistanceY|Vertical distance]] constraints to points. If a single point is selected, the constraints will refer to the sketch origin. If two or more points are selected, the constraints will refer to the last selected point.
The [[Image:Sketcher_ConstrainLock.svg|24px]] [[Sketcher_ConstrainLock|Sketcher ConstrainLock]] tool applies [[File:Sketcher_ConstrainDistanceX.svg|16px]] [[Sketcher_ConstrainDistanceX|horizontal distance]] and [[File:Sketcher_ConstrainDistanceY.svg|16px]] [[Sketcher_ConstrainDistanceY|vertical distance]] constraints to points. If a single point is selected, the constraints refer to the sketch origin. If two or more points are selected, the constraints refer to the last selected point.


==Usage== <!--T:3-->
==Usage== <!--T:3-->

Revision as of 16:19, 6 March 2024

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 refer to the sketch origin. If two or more points are selected, the constraints refer to 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

  • Optionally edit the constraints values by either:
    • Double-click on a constraint value in the 3D view.
    • Double-click on the constraint in the Tasks tab.
    • Right-click on the constraint in the Tasks tab and select Change value in the context menu.

Scripting

The Lock constraint is a GUI command which creates a Horizontal distance and a Vertical distance constraint, it is not a constraint of its own. See the Sketcher scripting page for details and examples on how to create these constraints from Python scripts.