Sketcher ToggleDrivingConstraint: Difference between revisions

From FreeCAD Documentation
(button -> icon)
(tried to emphasise the difference between both toggle functions)
Line 42: Line 42:


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

===Toggle tool mode===


<!--T:9-->
<!--T:9-->
Line 48: Line 50:
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ToggleDrivingConstraint.svg|16px]] Toggle driving/reference constraint}} option from the menu.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ToggleDrivingConstraint.svg|16px]] Toggle driving/reference constraint}} option from the menu.
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|X}}.
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|X}}.
# The tool mode changes.
# The dimensional constraints icons in the Sketcher Constraints toolbar turn from red to blue.
#* Red dimensional constraints icons in the Sketcher Constraints toolbar denote the Driving mode. Following newly created constraints are created in Driving condition and also colored red.
# The usual method of creating dimensional constraints works the same, but a blue reference dimension is added instead.
# To turn the Sketcher Constraints toolbar back to constraint mode (red), press the Toggle Constraint button again.
#* Blue dimensional constraints icons in the Sketcher Constraints toolbar denote the Reference mode. Following newly created constraints are created in Reference condition and also colored blue.

# To turn a dimensional constraint into a reference dimension, or the reverse, select it and press the Toggle Constraint button.
===Toggle constraint condition===

# Select one or more dimensional constraints.
# Invoke the tool as described above, or with one of the following additional options:
#* {{Version|0.22}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|[[Image:Sketcher_ToggleDrivingConstraint.svg|16px]] Toggle driving/reference constraint}} option from the context menu.
#* In the {{MenuCommand|Constraints}} section of the [[Task_panel|Task panel]] select the {{MenuCommand|Toggle to/from reference}} option from the context menu.
# Selected driving constraints change to reference constraints and turn blue while selected reference constraints become driving and return to red.
#: This does not change the tool mode.





Revision as of 21:35, 29 February 2024

Sketcher ToggleDrivingConstraint

Menu location
Sketch → Sketcher constraints → Toggle driving/reference constraint
Workbenches
Sketcher
Default shortcut
K X
Introduced in version
0.16
See also
Sketcher Toggle Construction

Description

The Sketcher ToggleDrivingConstraint tool turns dimensional constraints (Lock, Horizontal/Vertical distance, Length, Radius and Angle) into reference mode, and back. The icons in the toolbar turn blue, and rather than dimensional constraints, reference dimensions are created. Reference dimensions do not constrain the sketch. It can be useful to create reference dimensions in a sketch as a way to check on measurements; when given a name, they can also be used to drive constraints in another sketch through expressions.


The Sketcher Constraint toolbar with the dimensional constraints in reference dimension mode (blue).


A horizontal distance constraint (50 mm), a vertical constraint (30 mm) and an angle constraint (75°) were set to define the profile; a reference dimension was added on the slanted line segment to know its length (31.0583 mm).

Usage

Toggle tool mode

  1. There are several ways to invoke the command:
    • Press the Toggle driving/reference constraint button.
    • Select the Sketch → Sketcher constraints → Toggle driving/reference constraint option from the menu.
    • Use the keyboard shortcut: K then X.
  2. The tool mode changes.
    • Red dimensional constraints icons in the Sketcher Constraints toolbar denote the Driving mode. Following newly created constraints are created in Driving condition and also colored red.
    • Blue dimensional constraints icons in the Sketcher Constraints toolbar denote the Reference mode. Following newly created constraints are created in Reference condition and also colored blue.

Toggle constraint condition

  1. Select one or more dimensional constraints.
  2. Invoke the tool as described above, or with one of the following additional options:
    • introduced in version 0.22: Right-click in the 3D view and select the Toggle driving/reference constraint option from the context menu.
    • In the Constraints section of the Task panel select the Toggle to/from reference option from the context menu.
  3. Selected driving constraints change to reference constraints and turn blue while selected reference constraints become driving and return to red.
    This does not change the tool mode.