Draft Constrain: Difference between revisions

From FreeCAD Documentation
(Remove spurious }})
(Preferences)
 
(66 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:6-->
<!--T:6-->
{{Docnav
{{Docnav
|[[Draft_Snap|Snap]]
|[[Draft_Coordinates|Coordinates]]
|[[Draft_Snap|Snapping]]
|[[Draft_Pattern|Pattern]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconL=
|IconL=
|IconR=
|IconR=
Line 11: Line 12:
}}
}}


</translate>
{{TOCright}}
<translate>


<!--T:21-->
== Description == <!--T:22-->
{{GuiCommand
|Name=Draft Constrain
|Empty=1
|MenuLocation=Taskview
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]]
|SeeAlso=
|Version=
}}


== Description == <!--T:1-->
<!--T:1-->
Apart from entering coordinates or using [[Draft_Snap|snapping]], there is a feature called constraining to help you draw accurately in the [[Image:Workbench_Draft.svg|24px]] [[Draft_Workbench|Draft Workbench]] and the [[Image:Workbench_Arch.svg|24px]] [[Arch_Workbench|Arch Workbench]]. For each subsequent point you can constrain the movement of the cursor to the X, Y, or Z direction of the [[Draft_SelectPlane|working plane]] coordinate system. This can for example be used to create a perfectly vertical line.
[[Image:Workbench_Draft.svg|24px]] [[Draft_Workbench|Draft Workbench]] tools allow you to pick [[Glossary#Point|points]], distances, radiuses, and angles graphically by clicking on the [[3D_view|3D view]] with the pointer.


<!--T:7-->
<!--T:23-->
Constraining is available with most [[Draft_Workbench|Draft]] and [[Arch_Workbench|Arch]] commands.
'''However''', when these parameters need to be precise, it is possible to enter the exact [[Draft_Coordinates|Draft Coordinates]] in the dialog for the tool.

<!--T:8-->
Another way of selecting more precise points is by constraining the movement of the pointer to a particular X, Y, or Z direction.

== Horizontal and vertical constraints == <!--T:9-->


</translate>
</translate>
[[Image:Draft_Constrain_taskpanel_example.png]]
{{TOCright}}
[[Image:Draft_Constrain_example.jpg]]
<translate>
<translate>
<!--T:10-->
<!--T:14-->
{{Caption|Perpendicular lines that were created by constraining the position of the points orthogonally}}
{{Caption|While the cursor is constrained the task panel locks the values that are not being modified}}

== Usage horizontal and vertical constraints == <!--T:9-->


<!--T:11-->
<!--T:11-->
# Choose a [[Draft_Workbench|Draft]] or [[Arch_Workbench|Arch]] command to create your geometry.
Hold the {{KEY|Shift}} key while drawing to force the next point to be constrained horizontally (X direction) or vertically (Y direction) in relation to the last point entered. The horizontal or vertical orientation depends on the position of the pointer when you press {{KEY|Shift}}; if you are more east or west from the last point, it will be horizontal; if you are more north or south, it will be vertical. To change the orientation, just release {{KEY|Shift}}, move the pointer to a new location, and hold {{KEY|Shift}} again.
# Pick a first point. A previous point is required.
# Do one of the following:
#* For a horizontal constraint: move the cursor to the left or right of the previous point.
#* For a vertical constraint: move the cursor above or below the previous point.
# Hold down {{KEY|Shift}}.
# The cursor is now constrained.
# Pick the next point.
# If the command is still active: optionally release {{KEY|Shift}} to disable the constraint.
# Always release {{KEY|Shift}} when the command is finished.


== Usage X, Y and Z constraints == <!--T:15-->
<!--T:12-->
Some tools like [[Draft_Offset|Draft Offset]] and [[Draft_Trimex|Draft Trimex]] use constraining differently. They do not constrain vertically or horizontally but use a different method more adapted to the particular tool, for example, constraining the operation to a certain line segment.


<!--T:13-->
<!--T:16-->
# Choose a [[Draft_Workbench|Draft]] or [[Arch_Workbench|Arch]] command to create your geometry.
While constraining the movement of the pointer, the Taskview panel will lock the coordinate values that are not being modified. For example, if using a horizontal constraint, only the X value changes, while the Y and Z values remain at their original relative or absolute coordinates, depending on whether relative mode is active or not.
# Pick a first point. A previous point is required.
# Press {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} to specify the direction.
# The cursor is now constrained.
# Pick the next point.
# If the command is still active optionally do one of the following:
#* Press the same key to disable the constraint.
#* Press one of the two other keys to constrain in a different direction.
# X, Y and Z constraints are automatically disabled when the command is finished.


<!--T:14-->
== Notes == <!--T:24-->
[[Image:Draft_Constrain_Shift_Taskview_example.png]]
{{Caption|Taskview when using a horizontal constraint while holding the Shift key}}


== X, Y, Z constraints == <!--T:15-->
<!--T:12-->
* Constraining can be combined with [[Draft_Snap|snapping]].
* The [[Draft_Offset|Draft Offset]] command and [[Draft_Trimex|Draft Trimex]] command use a different type of constraining, namely to restrict the operation to a certain segment.


<!--T:16-->
== Preferences == <!--T:25-->
Press one of the {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} keys after a point to constrain the next point on the specified X, Y, or Z direction. Press the same key again to release the constraint.


<!--T:17-->
<!--T:26-->
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].
Pressing {{KEY|X}} or {{KEY|Y}} is equivalent to holding {{KEY|Shift}} and constraining horizontally or vertically, respectively.

<!--T:27-->
* The default {{MenuCommand|Constrain modifier}} key, {{KEY|Shift}}, can be changed: {{MenuCommand|Edit → Preferences... → Draft → Grid and snapping → Constrain modifier}}.
* The {{MenuCommand|X}}, {{MenuCommand|Y}} and {{MenuCommand|Z}} shortcuts can be changed: {{MenuCommand|Edit → Preferences... → Draft → Interface → In-command shortcuts}}.


<!--T:18-->
[[Image:Draft_Constrain_Y_Taskview_example.png]]
{{Caption|Taskview when using a vertical constraint after pressing the Y key}}


<!--T:5-->
<!--T:5-->
{{Docnav
{{Docnav
|[[Draft_Snap|Snap]]
|[[Draft_Coordinates|Coordinates]]
|[[Draft_Snap|Snapping]]
|[[Draft_Pattern|Pattern]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconC=Workbench_Draft.svg
|IconL=
|IconL=
|IconR=
|IconR=

Latest revision as of 16:56, 3 December 2023

Description

Apart from entering coordinates or using snapping, there is a feature called constraining to help you draw accurately in the Draft Workbench and the Arch Workbench. For each subsequent point you can constrain the movement of the cursor to the X, Y, or Z direction of the working plane coordinate system. This can for example be used to create a perfectly vertical line.

Constraining is available with most Draft and Arch commands.

While the cursor is constrained the task panel locks the values that are not being modified

Usage horizontal and vertical constraints

  1. Choose a Draft or Arch command to create your geometry.
  2. Pick a first point. A previous point is required.
  3. Do one of the following:
    • For a horizontal constraint: move the cursor to the left or right of the previous point.
    • For a vertical constraint: move the cursor above or below the previous point.
  4. Hold down Shift.
  5. The cursor is now constrained.
  6. Pick the next point.
  7. If the command is still active: optionally release Shift to disable the constraint.
  8. Always release Shift when the command is finished.

Usage X, Y and Z constraints

  1. Choose a Draft or Arch command to create your geometry.
  2. Pick a first point. A previous point is required.
  3. Press X, Y or Z to specify the direction.
  4. The cursor is now constrained.
  5. Pick the next point.
  6. If the command is still active optionally do one of the following:
    • Press the same key to disable the constraint.
    • Press one of the two other keys to constrain in a different direction.
  7. X, Y and Z constraints are automatically disabled when the command is finished.

Notes

  • Constraining can be combined with snapping.
  • The Draft Offset command and Draft Trimex command use a different type of constraining, namely to restrict the operation to a certain segment.

Preferences

See also: Preferences Editor and Draft Preferences.

  • The default Constrain modifier key, Shift, can be changed: Edit → Preferences... → Draft → Grid and snapping → Constrain modifier.
  • The X, Y and Z shortcuts can be changed: Edit → Preferences... → Draft → Interface → In-command shortcuts.