Sketcher ConstrainRadius: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
 
(49 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Page_in_progress}}
<translate>
<translate>

<!--T:8-->
<!--T:8-->
{{Docnav
{{Docnav
|[[Sketcher_ConstrainRadiam|Auto radius/diameter]]
|[[Sketcher_ConstrainDistance|Distance]]
|[[Sketcher_ConstrainDiameter|Constraint Diameter]]
|[[Sketcher_ConstrainDiameter|Diameter]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Constraint_Length.png
|IconL=Sketcher_ConstrainRadiam.svg
|IconR=Sketcher_ConstrainDiameter.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
|IconR=Sketcher ConstrainDiameter.svg
}}
}}


Line 14: Line 16:
{{GuiCommand
{{GuiCommand
|Name=Sketcher ConstrainRadius
|Name=Sketcher ConstrainRadius
|Workbenches=[[Sketcher Workbench|Sketcher]]
|MenuLocation=Sketch → Sketcher constraints → Constrain radius
|MenuLocation=Sketch → Sketcher constraints → Constrain radius
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|SeeAlso=[[Sketcher ConstrainDistance|Sketcher Constrain distance]], [[Sketcher ConstrainDistanceX|Sketcher Constrain horizontal distance]], [[Sketcher ConstrainDistanceY|Sketcher Constrain vertical distance]]
|Shortcut={{KEY|K}} {{KEY|R}}
|SeeAlso=[[Sketcher_ConstrainDistance|Sketcher Constrain distance]], [[Sketcher_ConstrainDistanceX|Sketcher Constrain horizontal distance]], [[Sketcher_ConstrainDistanceY|Sketcher Constrain vertical distance]]
}}
}}


Line 22: Line 25:


<!--T:6-->
<!--T:6-->
The [[Image:Sketcher_ConstrainRadius.svg|24px]] [[Sketcher_ConstrainRadius|Sketcher ConstrainRadius]] tool fixes the radius of circles, arcs and [[Sketcher_CreateBSpline#Notes|B-spline weight circles]].
This constraint 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, a prompt will ask if all selected elements should share the same radius. In the case of an affirmative response, one radius constraint will be added, and [[Sketcher ConstrainEqual|equal length]] constraints will be added to all elements. In the negative, separate radius constraints will be created for each circle/arc but with equal values to be edited separately after creation.


</translate>
</translate>
Line 29: Line 32:


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

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

===[[Sketcher_Workbench#Continue_modes|Continue mode]]===


<!--T:4-->
<!--T:4-->
# Make sure there is no selection.
# Pick one or more circles or arcs.
# There are several ways to invoke the tool:
# Press the {{Button|[[File:Sketcher_ConstrainRadius.svg|16px]] [[Sketcher_ConstrainRadius|Constrain radius]]}} button.
#* {{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.
# A pop up dialog opens to edit or confirm the value. Press {{Button|OK}} to validate. In case multiple circles/arcs were selected, all constraints will adopt this value. Edit their separate values by double-clicking on the dimension label in the 3D view; or in the Constraints list, double-click on the constraint or right-click and select '''Change value'''.
#* 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.
# Optionally the dimension label and line can be moved and rotated in the 3D view by clicking on the value and dragging while keeping the left mouse button pressed.
#* 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.
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|R}}.
# For further steps see [[Sketcher_ConstrainRadiam#Continue_mode|Sketcher ConstrainRadiam]].

===Run-once mode===

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

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

</translate>
{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Radius', ArcOrCircle, App.Units.Quantity('123.0 mm')))}}
<translate>


<!--T:5-->
<!--T:13-->
The [[Sketcher_scripting|Sketcher scripting]] page explains the values which can be used for {{incode|ArcOrCircle}}, and contains further examples on how to create constraints from Python scripts.
'''Note:''' the constraint tool can also be started with no prior selection. By default the command will be in continue mode to create new constraints; press the right mouse button or {{KEY|Esc}} once to quit the command.




<!--T:9-->
<!--T:9-->
{{Docnav
{{Docnav
|[[Sketcher_ConstrainRadiam|Auto radius/diameter]]
|[[Sketcher_ConstrainDistance|Distance]]
|[[Sketcher_ConstrainDiameter|Constraint Diameter]]
|[[Sketcher_ConstrainDiameter|Diameter]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Constraint_Length.png
|IconL=Sketcher_ConstrainRadiam.svg
|IconR=Sketcher_ConstrainDiameter.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
|IconR=Sketcher ConstrainDiameter.svg
}}
}}


</translate>
</translate>
{{Sketcher Tools navi{{#translation:}}}}
{{Sketcher_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest 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.