Sketcher ConstrainDiameter: Difference between revisions

From FreeCAD Documentation
No edit summary
(Docnav)
Line 6: Line 6:
{{Docnav
{{Docnav
|[[Sketcher_ConstrainRadius|Radius]]
|[[Sketcher_ConstrainRadius|Radius]]
|[[Sketcher_ConstrainAngle|Angle]]
|[[Sketcher_ConstrainRadiam|Auto radius/diameter]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainRadius.svg
|IconL=Sketcher_ConstrainRadius.svg
|IconR=Sketcher_ConstrainRadiam.svg
|IconR=Sketcher_ConstrainAngle.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}
Line 73: Line 73:
{{Docnav
{{Docnav
|[[Sketcher_ConstrainRadius|Radius]]
|[[Sketcher_ConstrainRadius|Radius]]
|[[Sketcher_ConstrainAngle|Angle]]
|[[Sketcher_ConstrainRadiam|Auto radius/diameter]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainRadius.svg
|IconL=Sketcher_ConstrainRadius.svg
|IconR=Sketcher_ConstrainRadiam.svg
|IconR=Sketcher_ConstrainAngle.svg
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
}}
}}

Revision as of 10:17, 8 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 ConstrainDiameter

Menu location
Sketch → Sketcher constraints → Constrain diameter
Workbenches
Sketcher
Default shortcut
K O
Introduced in version
0.18
See also
Sketcher Constrain distance, Sketcher Constrain horizontal distance, Sketcher Constrain vertical distance

Description

The Sketcher ConstrainDiameter tool fixes the diameter of circles and arcs. It cannot be used for 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:
    • Press the Constrain diameter button.
    • Select the Sketch → Sketcher constraints → Constrain diameter option from the menu.
    • introduced in version 0.22: Right-click in the 3D view and select the Dimension → Constrain diameter option from the context menu.
    • Use the keyboard shortcut: K then O.
  3. Select the edge of a circle or arc.
  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 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. Select the edge of one or more circles or arcs.
  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, see Notes.

Notes

Scripting

Sketch.addConstraint(Sketcher.Constraint('Diameter', 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.