Sketcher ConstrainRadius: Difference between revisions

From FreeCAD Documentation
(WIP)
Line 50: Line 50:
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|R}}.
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|R}}.
# Do one of the following:
# Do one of the following:
#* Select the edge of a single circle or arc.
#* Select the edge of a circle or arc.
#* Select the edge of a B-spline weight circle (see [[Sketcher_CreateBSpline#Notes|Sketcher CreateBSpline]] for more information.
#* Select the edge of a B-spline weight circle (see [[Sketcher_CreateBSpline#Notes|Sketcher CreateBSpline]] for more information.
# If a [[Sketcher_ToggleDrivingConstraint|driving]] constraint is created, and the {{MenuCommand|Ask for value after creating a dimensional constraint}} option is selected (default) in the [[Sketcher_Preferences#Display|Sketcher Preferences]]:
# If a [[Sketcher_ToggleDrivingConstraint|driving]] constraint is created, and the {{MenuCommand|Ask for value after creating a dimensional constraint}} option is selected (default) in the [[Sketcher_Preferences#Display|Sketcher Preferences]]:

Revision as of 20:00, 7 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 ConstrainRadius

Menu location
Sketch → Sketcher constraints → Constrain radius
Workbenches
Sketcher
Default shortcut
K R
Introduced in version
-
See also
Sketcher Constrain distance, Sketcher Constrain horizontal distance, Sketcher Constrain vertical distance

Description

The Sketcher ConstrainRadius tool constrains the value of the radius of a circle or arc to have a specific value. If more than one circle or arc is selected before launching the command :

  • If the constrain is applied in 'Reference' mode, a new reference constrain is added to each object separately according above rules
  • If the constrain is applied in 'Normal' (driving) mode, following rules are applied
    • A reference constrain is applied separately on each object which is an external geometry
    • Equal constrains are applied sequentially between all real/construction geometry objects and a dimensional constrain is applied to the first selected object according above rules

NB : B-spline poles can't be mixed with other object type in the selection

Usage

See also: Drawing aids.

Continue mode

  1. Make sure there is no selection.
  2. There are several ways to invoke the tool:
    • Press the Constrain radius button.
    • Select the Sketch → Sketcher constraints → Constrain radius option from the menu.
    • introduced in version 0.22: Right-click in the 3D view and select the Dimension → Constrain radius option from the context menu.
    • Use the keyboard shortcut: K then R.
  3. Do one of the following:
    • Select the edge of a circle or arc.
    • Select the edge of a B-spline weight circle (see Sketcher CreateBSpline for more information.
  4. If a driving constraint is created, and the Ask for value after creating a dimensional constraint option is selected (default) in the Sketcher Preferences:
    1. A pop up dialog opens to edit the constraint value.
    2. Press the OK button to confirm.
  5. A constraint is added.
  6. Optionally keep creating constraints.
  7. To finish, right-click or press Esc, or start another geometry or constraint creation tool

Once-only mode

  1. Do one of the following:
    • Select one or more edges of circles or arcs.
    • Select one or more edges of B-spline weight circles.
  2. Invoke the tool as explained above.
  3. Edit and/or confirm the constraint value as explained above.
  4. Depending on the selection one or more constraints are added.

Scripting

Sketch.addConstraint(Sketcher.Constraint('Radius', ArcOrCircle, App.Units.Quantity('123.0 mm')))

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