Sketcher ConstrainRadius: Difference between revisions

From FreeCAD Documentation
m (initial editing stages - lots of edits!)
mNo edit summary
(32 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand|Name=Constraint Radius|Workbenches=[[Sketcher Workbench|Sketcher]], [[PartDesign Module|PartDesign_Workbench]]|MenuLocation=Sketcher → Constrain radius|SeeAlso=[[Constraint distance]], [[Constraint horizontal]], [[Constraint vertical]]}}
<translate>
<!--T:8-->
{{Docnav
|[[Sketcher_ConstrainDistance|Distance]]
|[[Sketcher_ConstrainDiameter|Constraint Diameter]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainDistance.svg
|IconR=Sketcher_ConstrainDiameter.svg
|IconC=Workbench_Sketcher.svg
}}


<!--T:1-->
====Description====
{{GuiCommand
|Name=Sketcher ConstrainRadius
|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]]
}}


==Description== <!--T:2-->
<WRONG> This tool draws an arc by picking three points: the center, the start angle along the radius, and the end angle.


<!--T:6-->
When starting the tool, the mouse pointer changes to a white cross with a red arc icon. The coordinates of the pointer are shown beside it in blue in real time.
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 :
* 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
** {{Button|[[File:Sketcher_ConstrainEqual.svg|16px]] [[Sketcher_ConstrainEqual|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


</translate>
[[Image:Sketcher_ArcExample1.png|The center has been selected, dragging to set the radius‎]] [[Image:Sketcher_ArcExample2.png|407x360px|The center and start angle have been selected, dragging to set end angle‎]] </WRONG>
[[File:Sketcher ConstrainRadius example.png]]
<translate>


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


<!--T:4-->
<WRONG> * Pick points on an empty area of the 3D view, or on an existing object (auto constraints must be active in TaskView).
# Pick one or more circles or arcs.
* Pressing {{KEY|ESC}} or clicking the right mouse button cancels the function. </WRONG>
# Press the {{Button|[[File:Sketcher_ConstrainRadius.svg|16px]] [[Sketcher_ConstrainRadius|Constrain radius]]}} button.
# 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'''.
# 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.


<!--T:5-->
'''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.


== Scripting == <!--T:12-->
{{languages | {{es|Sketcher_Arc/es}} }}

--[[User:Jdurston|Jdurston]] 00:34, 16 November 2011 (UTC)
</translate>
{{Code|code=Sketch.addConstraint(Sketcher.Constraint('Radius', ArcOrCircle, App.Units.Quantity('123.0 mm')))}}
<translate>

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


<!--T:9-->
{{Docnav
|[[Sketcher_ConstrainDistance|Distance]]
|[[Sketcher_ConstrainDiameter|Constraint Diameter]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainDistance.svg
|IconR=Sketcher_ConstrainDiameter.svg
|IconC=Workbench_Sketcher.svg
}}

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

Revision as of 17:58, 19 June 2021

Sketcher ConstrainRadius

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

Description

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 :

  • 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

  1. Pick one or more circles or arcs.
  2. Press the Constrain radius button.
  3. A pop up dialog opens to edit or confirm the value. Press 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.
  4. 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.

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 Esc once to quit the command.

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.