Sketcher ConstrainEqual: Difference between revisions

From FreeCAD Documentation
Line 32: Line 32:


<!--T:14-->
<!--T:14-->
# Select two or more edges of the same type (optional if the tool will run in [[Sketcher_Workbench#Continue_modes|continue mode]]).
# Select two or more edges of the same type (skip this step if the tool should run in [[Sketcher_Workbench#Continue_modes|continue mode]]).
# There are several ways to invoke the tool:
# There are several ways to invoke the tool:
#* Press the {{Button|[[Image:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|Constrain equal]]}} button.
#* Press the {{Button|[[Image:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|Constrain equal]]}} button.
Line 40: Line 40:
# If the tool runs in [[Sketcher_Workbench#Continue_modes|continue mode]]:
# If the tool runs in [[Sketcher_Workbench#Continue_modes|continue mode]]:
## The cursor changes to a white cross with the tool icon.
## The cursor changes to a white cross with the tool icon.
## Optionally keep selecting elements. You can only select two edges at a time now.
## Select two edges of the same type.
## Optionally keep selecting elements.
## To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.
## To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.



Revision as of 20:16, 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 ConstrainEqual

Menu location
Sketch → Sketcher constraints → Constrain equal
Workbenches
Sketcher
Default shortcut
E
Introduced in version
-
See also
Sketcher Constrain radius

Description

The Sketcher ConstrainEqual tool constrains edges to have an equal length (lines) or curvature (other edges except B-splines). Selected edges must have the same type. Circles and circular arcs are of the same type (their radii are made equal), and so are ellipses and elliptical arcs (their major and minor radii are made equal).

Usage

See also: Drawing aids.

  1. Select two or more edges of the same type (skip this step if the tool should run in continue mode).
  2. There are several ways to invoke the tool:
    • Press the Constrain equal button.
    • Select the Sketch → Sketcher constraints → Constrain equal option from the menu.
    • introduced in version 0.22: Right-click in the 3D view and select the Constrain → Constrain equal option from the context menu.
    • Use the keyboard shortcut: E.
  3. If the tool runs in continue mode:
    1. The cursor changes to a white cross with the tool icon.
    2. Select two edges of the same type.
    3. Optionally keep selecting elements.
    4. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Scripting

Sketch.addConstraint(Sketcher.Constraint('Equal', Edge1, Edge2))

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