Sketcher ConstrainLock: Difference between revisions

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

<!--T:9-->
<!--T:9-->
{{Docnav
{{Docnav|[[Sketcher_ConstrainBlock|Constrain Block]]|[[Sketcher ConstrainDistanceX|Horizontal Distance]]|[[Sketcher_Workbench|Sketcher]]|IconL=Sketcher_ConstrainBlock.png|IconC=Workbench_Sketcher.svg|IconR=Constraint_HorizontalDistance.png‎}}
|[[Sketcher_ConstrainAngle|Angle]]
|[[Sketcher_ConstrainSnellsLaw|Refraction (Snell's law)]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainAngle.svg
|IconR=Sketcher_ConstrainSnellsLaw.svg‎
|IconC=Workbench_Sketcher.svg
}}


<!--T:4-->
<!--T:4-->
{{GuiCommand
{{GuiCommand
|Name=Sketcher ConstrainLock
|Name=Sketcher ConstrainLock
|Workbenches=[[Sketcher Workbench|Sketcher]]
|MenuLocation=Sketch → Sketcher constraints → Constrain lock
|MenuLocation=Sketch → Sketcher constraints → Constrain lock
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|SeeAlso=[[Sketcher ConstrainBlock|Constrain Block]]
|Shortcut={{KEY|K}} {{KEY|L}}
|SeeAlso=[[Sketcher_ConstrainBlock|Sketcher Constrain Block]]
}}
}}


Line 15: Line 25:


<!--T:5-->
<!--T:5-->
'''Constraint Lock''' applies [[File:Constraint_HorizontalDistance.png|24px]] [[Sketcher_ConstrainDistanceX|Horizontal distance]] and [[File:Constraint_VerticalDistance.png|24px]] [[Sketcher_ConstrainDistanceY|Vertical distance]] constraints to selected vertices (points) in the sketch. If a single vertex is selected, the horizontal and vertical distance constraints will refer to the sketch origin point. If two or more points are selected, horizontal and vertical distance constraints will be added for each pair of points. There is no automatic prompt to edit the constraints' values, they must be edited manually.
The [[Image:Sketcher_ConstrainLock.svg|24px]] [[Sketcher_ConstrainLock|Sketcher ConstrainLock]] tool applies [[Image:Sketcher_ConstrainDistanceX.svg|16px]] [[Sketcher_ConstrainDistanceX|Horizontal distance]] and [[Image:Sketcher_ConstrainDistanceY.svg|16px]] [[Sketcher_ConstrainDistanceY|Vertical distance]] constraints to points. If a single point is selected the constraints reference the sketch origin. If two or more points are selected the constraints reference the last selected point.


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


See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].
==How to use== <!--T:3-->

===[[Sketcher_Workbench#Continue_modes|Continue mode]]===


<!--T:6-->
<!--T:6-->
# Make sure there is no selection.
# Select one or more vertices (points) in the sketch.
# There are several ways to invoke the tool:
# Press the {{KEY|[[File:Sketcher ConstrainLock.png|24px]] '''Constrain Lock'''}} button.
#* {{Version|0.22}}: 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_ConstrainLock.svg|16px]] Constrain lock}} option from the dropdown.
# To edit the constraints values, double-click on a constraint value in the 3D view, or double-click on the constraint or right-click and select '''Edit value''' in the Constraint list in the Tasks tab.
#* If this preference has a different value (and in {{VersionMinus|0.21}}): press the {{Button|[[Image:Sketcher_ConstrainLock.svg|16px]] [[Sketcher_ConstrainLock|Constrain lock]]}} button.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ConstrainLock.svg|16px]] Constrain lock}} option from the menu.
#* {{Version|0.22}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|Dimension → [[Image:Sketcher_ConstrainLock.svg|16px]] Constrain lock}} option from the context menu.
#* Use the keyboard shortcut: {{KEY|K}} then {{KEY|L}}.
# The cursor changes to a white cross with the tool icon.
# Select a single point.
# Two constraints is added.
# Optionally keep creating constraints.
# To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.


===Run-once mode===
<!--T:7-->
'''Note:''' the constraint tool can also be started with no prior selection, but it will then only work on a single vertex, and reference the constraints to the sketch origin point. By default the command will be in continue mode to create new constraints; press the right mouse button or {{KEY|ESC}} once to quit the command.


# Select one or more points.
<!--T:10-->
# Invoke the tool as explained above.
{{Docnav|[[Sketcher_ConstrainBlock|Constrain Block]]|[[Sketcher ConstrainDistanceX|Horizontal Distance]]|[[Sketcher_Workbench|Sketcher]]|IconL=Sketcher_ConstrainBlock.png|IconC=Workbench_Sketcher.svg|IconR=Constraint_HorizontalDistance.png‎}}
# Depending on the selection two or more constraints are added.


==Notes==
<!--T:11-->
{{Sketcher Tools navi}}


* There is no automatic prompt to edit the constraint values. If required values can be [[Sketcher_Workbench#Edit_constraints|edited manually]].
<!--T:12-->

{{Userdocnavi}}
== Scripting == <!--T:13-->

<!--T:14-->
No specific scripting applies. See the [[Sketcher_scripting|Sketcher scripting]] page for details and examples on how to create constraints from Python scripts.


<!--T:10-->
{{Docnav
|[[Sketcher_ConstrainAngle|Angle]]
|[[Sketcher_ConstrainSnellsLaw|Refraction (Snell's law)]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_ConstrainAngle.svg
|IconR=Sketcher_ConstrainSnellsLaw.svg‎
|IconC=Workbench_Sketcher.svg
}}


</translate>
</translate>
{{Sketcher_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 19:04, 11 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 ConstrainLock

Menu location
Sketch → Sketcher constraints → Constrain lock
Workbenches
Sketcher
Default shortcut
K L
Introduced in version
-
See also
Sketcher Constrain Block

Description

The Sketcher ConstrainLock tool applies Horizontal distance and Vertical distance constraints to points. If a single point is selected the constraints reference the sketch origin. If two or more points are selected the constraints reference the last selected point.

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 0.22: 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 lock option from the dropdown.
    • If this preference has a different value (and in version 0.21 and below): press the Constrain lock button.
    • Select the Sketch → Sketcher constraints → Constrain lock option from the menu.
    • introduced in version 0.22: Right-click in the 3D view and select the Dimension → Constrain lock option from the context menu.
    • Use the keyboard shortcut: K then L.
  3. The cursor changes to a white cross with the tool icon.
  4. Select a single point.
  5. Two constraints is added.
  6. Optionally keep creating constraints.
  7. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Run-once mode

  1. Select one or more points.
  2. Invoke the tool as explained above.
  3. Depending on the selection two or more constraints are added.

Notes

  • There is no automatic prompt to edit the constraint values. If required values can be edited manually.

Scripting

No specific scripting applies. See the Sketcher scripting page for details and examples on how to create constraints from Python scripts.