Sketcher ToggleDrivingConstraint: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
(5 intermediate revisions by the same user not shown)
Line 20: Line 20:
|Shortcut={{KEY|K}} {{KEY|X}}
|Shortcut={{KEY|K}} {{KEY|X}}
|Version=0.16
|Version=0.16
|SeeAlso=[[Sketcher_ToggleConstruction|Sketcher Toggle Construction]]
|SeeAlso=[[Sketcher_ToggleActiveConstraint|Sketcher ToggleActiveConstraint]]
}}
}}


Line 26: Line 26:


<!--T:6-->
<!--T:6-->
The [[Image:Sketcher ToggleDrivingConstraint.svg|24px]] [[Sketcher_ToggleDrivingConstraint|Sketcher ToggleDrivingConstraint]] tool either toggles the [[Sketcher_Workbench#Sketcher_CompDimensionTools|dimensional constraint creation tools]] between driving and reference mode or toggles selected dimensional constraints between those modes.
The [[Image:Sketcher ToggleDrivingConstraint.svg|24px]] [[Sketcher_ToggleDrivingConstraint|Sketcher ToggleDrivingConstraint]] tool either toggles the [[Sketcher_Workbench#Sketcher_CompDimensionTools|dimensional constraint creation tools]] between driving and reference mode, or toggles selected dimensional constraints between those modes.


Contrary to driving constraints, reference constraints do not constrain the sketch, their value depends on other constraints, they are driven. They can be useful to verify measurements. They can be used in [[Expressions|expressions]], but not in the sketch itself.
Contrary to driving constraints, reference constraints do not constrain the sketch, their value depends on other constraints, they are driven. They can be useful to verify measurements. They can be used in [[Expressions|expressions]], but not in the sketch itself.
Line 38: Line 38:
==Usage== <!--T:4-->
==Usage== <!--T:4-->


===Toggle tool mode===
===Toggle tools===


<!--T:9-->
<!--T:9-->
# Make sure no dimensional constraints have been selected.
# There are several ways to invoke the command:
# There are several ways to invoke the tool:
#* Press the {{Button|[[Image:Sketcher_ToggleDrivingConstraint.svg|16px]] [[Sketcher_ToggleDrivingConstraint|Toggle driving/reference constraint]]}} button.
#* Press the {{Button|[[Image:Sketcher_ToggleDrivingConstraint.svg|16px]] [[Sketcher_ToggleDrivingConstraint|Toggle driving/reference constraint]]}} button.
#* 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 mode of the dimensional constraint creation tools is toggled:
# The tool mode changes.
#* In driving mode their menu and toolbar icons are red, and they create driving constraints (default [[Sketcher_Preferences#Appearance|color]] red).
#* 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.
#* In reference mode their menu and toolbar icons are blue, and they create reference constraints (default color blue).


===Toggle constraint condition===
===Toggle constraints===


# Select one or more dimensional constraints.
# Select one or more dimensional constraints.
# Invoke the tool as described above, or with one of the following additional options:
# 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.
#* {{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.
#* Right-click in the {{MenuCommand|Constraints}} section of the [[Task_panel|Task panel]] and select the {{MenuCommand|Toggle to/from reference}} option from the context menu.
#* Right-click in the {{MenuCommand|Constraints}} section of the [[Sketcher_Dialog|Sketcher Dialog]] and select the {{MenuCommand|Toggle to/from reference}} option from the context menu.
# The selected constraints are changed from driving to reference mode or vice versa. Their appearance changes accordingly.
# Selected driving constraints change to reference constraints and turn blue while selected reference constraints become driving and return to red.
# The mode of the dimensional constraint creation tools is not changed.
#: This does not change the tool mode.





Revision as of 22:22, 27 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 ToggleDrivingConstraint

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

Description

The Sketcher ToggleDrivingConstraint tool either toggles the dimensional constraint creation tools between driving and reference mode, or toggles selected dimensional constraints between those modes.

Contrary to driving constraints, reference constraints do not constrain the sketch, their value depends on other constraints, they are driven. They can be useful to verify measurements. They can be used in expressions, but not in the sketch itself.

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 tools

  1. Make sure no dimensional constraints have been selected.
  2. There are several ways to invoke the tool:
    • 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.
  3. The mode of the dimensional constraint creation tools is toggled:
    • In driving mode their menu and toolbar icons are red, and they create driving constraints (default color red).
    • In reference mode their menu and toolbar icons are blue, and they create reference constraints (default color blue).

Toggle constraints

  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.
    • Right-click in the Constraints section of the Sketcher Dialog and select the Toggle to/from reference option from the context menu.
  3. The selected constraints are changed from driving to reference mode or vice versa. Their appearance changes accordingly.
  4. The mode of the dimensional constraint creation tools is not changed.