Sketcher ConstrainRadiam: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 50: Line 50:


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



Revision as of 09:43, 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 ConstrainRadiam

Menu location
Sketch → Sketcher constraints → Constrain auto radius/diameter
Workbenches
Sketcher
Default shortcut
K S
Introduced in version
0.20
See also
Sketcher Constrain distance, Sketcher Constrain horizontal distance, Sketcher Constrain vertical distance

Description

The Sketcher ConstrainRadiam tool fixes the radius of arcs and B-spline weight circles, and the diameter of 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 auto radius/diameter button.
    • Select the Sketch → Sketcher constraints → Constrain auto radius/diameter option from the menu.
    • introduced in version 0.22: Right-click in the 3D view and select the Dimension → Constrain auto radius/diameter option from the context menu.
    • Use the keyboard shortcut: K then S.
  3. For further steps see Sketcher ConstrainRadius.

Once-only mode

See Sketcher ConstrainRadius.

Scripting

Sketch.addConstraint(Sketcher.Constraint('Radius', ArcOrCircle, App.Units.Quantity('123.0 mm')))
Sketch.addConstraint(Sketcher.Constraint('Diameter', ArcOrCircle, App.Units.Quantity('246.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.