Sketcher ConstrainRadius: Difference between revisions
(several ways added) |
(WIP) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Page_in_progress}} |
|||
<translate> |
<translate> |
||
Line 36: | Line 37: | ||
==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. |
|||
⚫ | |||
# There are several ways to invoke the |
# There are several ways to invoke the tool: |
||
#* Press the {{Button|[[Image:Sketcher_ConstrainRadius.svg|16px]] [[Sketcher_ConstrainRadius|Constrain radius]]}} button. |
#* 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. |
||
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|R}}. |
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|R}}. |
||
# Do one of the following: |
|||
# 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'''. |
|||
#* Select the edge of a single circle or arc. |
|||
# 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 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]]: |
|||
## A pop up dialog opens to edit the constraint value. |
|||
## Press the {{Button|OK}} button to confirm. |
|||
# A constraint is added. |
|||
# Optionally keep creating constraints. |
|||
# To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool |
|||
===Once-only mode=== |
|||
# Do one of the following: |
|||
<!--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. |
|||
#* Select one or more edges of B-spline weight circles. |
|||
# Invoke the tool as explained above. |
|||
# Edit and/or confirm the constraint value as explained above. |
|||
# Depending on the selection one or more constraints are added. |
|||
== Scripting == <!--T:12--> |
== Scripting == <!--T:12--> |
Revision as of 19:59, 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
- Make sure there is no selection.
- 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.
- Do one of the following:
- Select the edge of a single circle or arc.
- Select the edge of a B-spline weight circle (see Sketcher CreateBSpline for more information.
- If a driving constraint is created, and the Ask for value after creating a dimensional constraint option is selected (default) in the Sketcher Preferences:
- A pop up dialog opens to edit the constraint value.
- Press the OK button to confirm.
- A constraint is added.
- Optionally keep creating constraints.
- To finish, right-click or press Esc, or start another geometry or constraint creation tool
Once-only mode
- Do one of the following:
- Select one or more edges of circles or arcs.
- Select one or more edges of B-spline weight circles.
- Invoke the tool as explained above.
- Edit and/or confirm the constraint value as explained above.
- 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.
Sketcher
- General: Create sketch, Edit sketch, Map sketch to face, Reorient sketch, Validate sketch, Merge sketches, Mirror sketch, Leave sketch, View sketch, View section, Toggle grid, Toggle snap, Configure rendering order, Stop operation
- Sketcher geometries: Point, Line, Arc, Arc by 3 points, Circle, Circle by 3 points, Ellipse, Ellipse by 3 points, Arc of ellipse, Arc of hyperbola, Arc of parabola, B-spline by control points, Periodic B-spline by control points, B-spline by knots, Periodic B-spline by knots, Polyline, Rectangle, Centered rectangle, Rounded rectangle, Triangle, Square, Pentagon, Hexagon, Heptagon, Octagon, Regular polygon, Slot, Fillet, Corner-preserving fillet, Trim, Extend, Split, External geometry, Carbon copy, Toggle construction geometry
- Sketcher constraints:
- Geometric constraints: Coincident, Point on object, Vertical, Horizontal, Parallel, Perpendicular, Tangent, Equal, Symmetric, Block
- Dimensional constraints: Lock, Horizontal distance, Vertical distance, Distance, Radius or weight, Diameter, Auto radius/diameter, Angle, Refraction (Snell's law)
- Constraint tools: Toggle driving/reference constraint, Activate/deactivate constraint
- Sketcher tools: Select unconstrained DoF, Select associated constraints, Select associated geometry, Select redundant constraints, Select conflicting constraints, Show/hide internal geometry, Select origin, Select horizontal axis, Select vertical axis, Symmetry, Clone, Copy, Move, Rectangular array, Remove axes alignment, Delete all geometry, Delete all constraints
- Sketcher B-spline tools: Show/hide B-spline degree, Show/hide B-spline control polygon, Show/hide B-spline curvature comb, Show/hide B-spline knot multiplicity, Show/hide B-spline control point weight, Convert geometry to B-spline, Increase B-spline degree, Decrease B-spline degree, Increase knot multiplicity, Decrease knot multiplicity, Insert knot, Join curves
- Sketcher virtual space: Switch virtual space
- Additional: Sketcher Dialog, Preferences, Sketcher scripting
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub