Sketcher ConstrainDiameter: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Page_in_progress}}
<translate>
<translate>


Line 6: Line 5:
{{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 20: Line 19:
|Shortcut={{KEY|K}} {{KEY|O}}
|Shortcut={{KEY|K}} {{KEY|O}}
|Version=0.18
|Version=0.18
|SeeAlso=[[Sketcher_ConstrainRadiam|Sketcher ConstrainRadiam]], [[Sketcher_ConstrainRadius|Sketcher ConstrainRadius]]
|SeeAlso=[[Sketcher_ConstrainDistance|Sketcher Constrain distance]], [[Sketcher_ConstrainDistanceX|Sketcher Constrain horizontal distance]], [[Sketcher_ConstrainDistanceY|Sketcher Constrain vertical distance]]
}}
}}


Line 26: Line 25:


<!--T:6-->
<!--T:6-->
The [[Image:Sketcher_ConstrainDiameter.svg|24px]] [[Sketcher_ConstrainDiameter|Sketcher ConstrainDiameter]] tool fixes the diameter of circles or arcs. It cannot be used for [[Sketcher_CreateBSpline#Notes|B-spline weight circles]].
The [[Image:Sketcher_ConstrainDiameter.svg|24px]] [[Sketcher_ConstrainDiameter|Sketcher ConstrainDiameter]] tool fixes the diameter of circles and arcs. It cannot be used for [[Sketcher_CreateBSpline#Notes|B-spline weight circles]].


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


<!--T:11-->
See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].
See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].


===[[Sketcher_Workbench#Continue_modes|Continue mode]]===
===[[Sketcher_Workbench#Continue_modes|Continue mode]]=== <!--T:12-->


<!--T:4-->
<!--T:4-->
# Make sure there is no selection.
# Make sure there is no selection.
# There are several ways to invoke the tool:
# There are several ways to invoke the tool:
#* {{Version|1.0}}: 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_ConstrainDiameter.svg|16px]] Constrain diameter}} option from the dropdown.
#* Press the {{Button|[[Image:Sketcher_ConstrainDiameter.svg|16px]] [[Sketcher_ConstrainDiameter|Constrain diameter]]}} button.
#* If this preference has a different value (and in {{VersionMinus|0.21}}): press the {{Button|[[Image:Sketcher_ConstrainDiameter.svg|16px]] [[Sketcher_ConstrainDiameter|Constrain diameter]]}} button.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ConstrainDiameter.svg|16px]] Constrain diameter}} option from the menu.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ConstrainDiameter.svg|16px]] Constrain diameter}} option from the menu.
#* {{Version|0.22}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|Dimension → [[Image:Sketcher_ConstrainDiameter.svg|16px]] Constrain diameter}} option from the context menu.
#* {{Version|1.0}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|Dimension → [[Image:Sketcher_ConstrainDiameter.svg|16px]] Constrain diameter}} option from the context menu.
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|O}}.
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|O}}.
# The cursor changes to a cross with the tool icon.
# Select the edge of a circle or arc.
# Select the edge of a circle or arc.
# 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]]:
# If a [[Sketcher_ToggleDrivingConstraint|driving dimensional constraint]] is created, depending on the [[Sketcher_Preferences#Display|preferences]], a dialog opens to [[Sketcher_Workbench#Edit_constraints|edit its value]].
## A dialog opens to edit the constraint value.
## Press the {{Button|OK}} button to confirm.
# A constraint is added.
# A constraint is added.
# Optionally keep creating constraints.
# Optionally keep creating constraints.
# To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.
# To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.


===Once-only mode===
===Run-once mode=== <!--T:13-->


<!--T:14-->
# Select the edge of one or more circles or arcs.
# Select the edge of one or more circles or arcs.
# Invoke the tool as explained above.
# Invoke the tool as explained above.
# Edit and/or confirm the constraint value as explained above.
# Optionally [[Sketcher_Workbench#Edit_constraints|edit the constraint value]].
# Depending on the selection one or more constraints are added, see [[Sketcher_ConstrainRadius#Notes|Sketcher ConstrainRadius]].
# Depending on the selection one or more constraints are added, see [[#Notes|Notes]].

==Notes== <!--T:15-->

<!--T:16-->
* If [[Sketcher_ToggleDrivingConstraint|driving constraints]] are created and multiple elements that are not [[Sketcher_External|external geometry]] have been pre-selected, only the first of those receives a dimensional constraint, while between the first and the others [[Sketcher_ConstrainEqual|Equal constrains]] are applied.


== Scripting == <!--T:9-->
== Scripting == <!--T:9-->
Line 69: Line 75:
{{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
}}
}}

Latest revision as of 15:18, 23 April 2024

Sketcher ConstrainDiameter

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

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:
    • introduced in version 1.0: 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 diameter option from the dropdown.
    • If this preference has a different value (and in version 0.21 and below): press the Constrain diameter button.
    • Select the Sketch → Sketcher constraints → Constrain diameter option from the menu.
    • introduced in version 1.0: 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. The cursor changes to a cross with the tool icon.
  4. Select the edge of a circle or arc.
  5. If a driving dimensional constraint is created, depending on the preferences, a dialog opens to edit its value.
  6. A constraint is added.
  7. Optionally keep creating constraints.
  8. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Run-once mode

  1. Select the edge of one or more circles or arcs.
  2. Invoke the tool as explained above.
  3. Optionally edit the constraint value.
  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.