Sketcher ConstrainLock/pt: Difference between revisions

From FreeCAD Documentation
(Created page with "Constraint Lock")
 
(Updating to match new version of source page)
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand|Name=Sketcher ConstrainLock|Workbenches=[[Sketcher Workbench|Sketcher]], [[PartDesign Workbench|PartDesign]]|MenuLocation=Sketch → Sketcher constraints → Constrain lock|SeeAlso=[[Constraint PointOnPoint|Constraint Coincident]]}}

{{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
}}

<div class="mw-translate-fuzzy">
{{GuiCommand/pt
|Name=Sketcher ConstrainLock
|Name/pt=Sketcher ConstrainLock
|Workbenches=[[Sketcher Workbench/pt|Sketcher]], [[PartDesign Workbench/pt|PartDesign]]
|MenuLocation=Sketch → Sketcher constraints → Constrain lock
|SeeAlso=[[Sketcher_ConstrainBlock|Sketcher Constrain Block]]
}}
</div>


Create a lock constraint on the selected item
==Description==
==Description==
This constraint tool attempts to <em>fully constrain</em> any selected item.


The [[Image:Sketcher_ConstrainLock.svg|24px]] [[Sketcher_ConstrainLock|Sketcher ConstrainLock]] tool applies [[Sketcher_ConstrainDistanceX|Horizontal distance]] and [[Sketcher_ConstrainDistanceY|Vertical distance]] constraints to points. If a single point is selected the constraints reference the origin of the sketch. If two or more points are selected the constraints reference the last point in the selection.
NOTE: It is advised that this tool be exclusively used on points for the time-being:


==Usage==
Owing to the fact that FreeCAD is still under development - this tool exhibits strange behaviour when it attempts to 'lock' anything other than a point. For example (as of V0.12 R4802), when locking a circle by its circumferential line rather than its centre <em>point</em>, a horizontal constraint and a vertical constraint appear in the constraints dialogue, but they are both of value zero and do not appear in the graphics window.
==Operation==
<ol>
<li>Firstly it is necessary to highlight an item you wish to constrain. For reasons alluded-to above it is wise to only highlight a <em>point</em>.<br />
[[File:LockConstraint1.png|256px]]</li>
<li>
Highlighting of a drawing item is achieved by moving the mouse over the item and clicking the left-mouse-button.
A highlighted item will change colour to green.<br />
[[File:LockConstraint2.png|256px]]</li>
<li>
Once an item is highlighted, left-clicking on the <em>lock</em> constraint serves to lock the highlighted item in-place. This usually manifests as two constraints: a horizontal distance constraint from the drawing axis origin, and a vertical constraint from the drawing axis origin. These are set by default to the current co-ordinates of the point.<br />
[[File:LockConstraint3.png|256px]]</li>
<li>
The vertical and horizontal constraints forming the lock can be edited by double clicking on the appropriate constraint to be edited either in the drawing itself or in the Constraint tab of the Combo View pane. This will open a dialog box to edit the constraint. Clicking on the horizontal constraint component produces:<br />
[[File:LockConstraint4.png|256px]].</li>
<li>Enter the desired value into the dialog box and click OK.<br />
[[File:LockConstraint5.png|256px]]</li>
<li>The new value of the constraint is applied to the drawing.<br />
[[File:LockConstraint6.png|256px]]</li>
<li>The vertical constraint may be similarly edited to constrain the point to the desired location.<br />
[[File:LockConstraint7.png|256px]]</li></ol>


See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].
<languages/>

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

# Make sure there is no selection.
# 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_ConstrainLock.svg|16px]] Constrain lock}} option from the dropdown.
#* 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|1.0}}: 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 cross with the tool icon.
# Select a single point.
# Two constraints are added.
# Optionally keep creating constraints.
# To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.

===Run-once mode===

# Select one or more points.
# Invoke the tool as explained above.
# 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 [[Sketcher_Workbench#Edit_constraints|edited manually]].


{{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
}}

{{Sketcher_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 13:44, 24 April 2024

Sketcher ConstrainLock

Localização do menu
Sketch → Sketcher constraints → Constrain lock
Bancadas de trabalho
Sketcher, PartDesign
Atalho padrão
Nenhum
Introduzido na versão
-
Veja também
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 origin of the sketch. If two or more points are selected the constraints reference the last point in the selection.

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 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 1.0: 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 cross with the tool icon.
  4. Select a single point.
  5. Two constraints are 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.