Sketcher ConstrainRadius

From FreeCAD Documentation
Revision as of 20:31, 7 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 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 fixes the radius of circles, arcs or B-spline weight circles.

If driving constraints are being applied and multiple elements that are not external geometry have been pre-selected, a driving Radial constraint will only be applied to the first of those, and between the first and the others Equal constrains will be applied.

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.
  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 the edge of one or more circles or arcs.
    • Select the edge of one or more 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.