Sketcher ConstrainRadius: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
(2 intermediate revisions by the same user not shown)
Line 40: Line 40:
# Make sure there is no selection.
# Make sure there is no selection.
# There are several ways to invoke the tool:
# There are several ways to invoke the tool:
#* {{Version|0.22}}: If the {{MenuCommand|Dimensioning constraints}} [[Sketcher_Preferences#General|preference]] is set to {{Value|Single tool}} (default): press the down arrow to the right of the {{Button|[[Image:Sketcher_Dimension.svg||x16px]][[Image:Toolbar_flyout_arrow.svg|x16px]]}} button and select the {{MenuCommand|[[Image:Sketcher_ConstrainRadius.svg|16px]] Constrain radius}} option from the dropdown.
#* Press the {{Button|[[Image:Sketcher_ConstrainRadius.svg|16px]] [[Sketcher_ConstrainRadius|Constrain radius]]}} button.
#* If this preference has a different value (and in {{VersionMinus|0.21}}): press the {{Button|[[Image:Sketcher_ConstrainRadius.svg|16px]] [[Sketcher_ConstrainRadius|Constrain radius]]}} button.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ConstrainRadius.svg|16px]] Constrain radius}} option from the menu.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ConstrainRadius.svg|16px]] Constrain radius}} option from the menu.
#* {{Version|0.22}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|Dimension → [[Image:Sketcher_ConstrainRadius.svg|16px]] Constrain radius}} option from the context menu.
#* {{Version|0.22}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|Dimension → [[Image:Sketcher_ConstrainRadius.svg|16px]] Constrain radius}} option from the context menu.
Line 46: Line 47:
# For further steps see [[Sketcher_ConstrainRadiam#Continue_mode|Sketcher ConstrainRadiam]].
# For further steps see [[Sketcher_ConstrainRadiam#Continue_mode|Sketcher ConstrainRadiam]].


===Once-only mode===
===Run-once mode===


See [[Sketcher_ConstrainRadiam#Once-only_mode|Sketcher ConstrainRadiam]].
See [[Sketcher_ConstrainRadiam#Once-only_mode|Sketcher ConstrainRadiam]].

==Notes==

* If [[Sketcher_ToggleDrivingConstraint|driving constraints]] are created and multiple elements that are not [[Sketcher_External|external geometry]] have been pre-selected, only the first of those receives a dimensional constraint, while between the first and the others [[Image:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|Equal constrains]] are applied.


== Scripting == <!--T:12-->
== Scripting == <!--T:12-->

Revision as of 18:57, 11 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 fixes the radius of circles, arcs and B-spline weight circles.

Usage

See also: Drawing aids.

Continue mode

  1. Make sure there is no selection.
  2. There are several ways to invoke the tool:
    • introduced in version 0.22: If the Dimensioning constraints preference is set to Single tool (default): press the down arrow to the right of the button and select the Constrain radius option from the dropdown.
    • If this preference has a different value (and in version 0.21 and below): 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. For further steps see Sketcher ConstrainRadiam.

Run-once mode

See Sketcher ConstrainRadiam.

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.