Sketcher ConstrainBlock: Difference between revisions

From FreeCAD Documentation
(WIP)
No edit summary
Line 31: Line 31:


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

See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].


<!--T:6-->
<!--T:6-->

Revision as of 17:36, 1 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 ConstrainBlock

Menu location
Sketch → Sketcher constraints → Constrain block
Workbenches
Sketcher
Default shortcut
K B
Introduced in version
0.17
See also
Sketcher Constrain Lock

Description

The Sketcher ConstrainBlock tool blocks edges in place with a single constraint. It is mainly intended for B-splines, which can be difficult to fully constrain otherwise.

The block constraint only affects the freely movable parts of an edge. Blocked edges can have other constraints, and applying addition constraints to a blocked edge can modify it.

Usage

See also: Drawing aids.

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

Scripting

Sketch.addConstraint(Sketcher.Constraint('Block', Edge))

The Sketcher scripting page explains the values which can be used for Edge and contains further examples on how to create constraints from Python scripts.