Draft Constrain/zh-cn: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:


{{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 10: Line 10:
}}
}}


{{TOCright}}
{{GuiCommand

|Name=Draft Constrain
== Description ==
|Empty=1
|MenuLocation=Taskview
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]]
}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
== 描述 ==
== 描述 ==
在[[Draft_Module/zh-cn|底图工作台]]工具中,您可以通过指针单击3D视图来拾取图形中的点、距离、半径与角度。
在[[Draft_Workbench/zh-cn|底图工作台]]工具中,您可以通过指针单击3D视图来拾取图形中的点、距离、半径与角度。
</div>
</div>


Constraining is available with most [[Draft_Workbench|Draft]] and [[Arch_Workbench|Arch]] commands.
<div class="mw-translate-fuzzy">
但是,当这些参数需要特别精准时,可能就要在工具对话框中输入准确的[[Draft_Coordinates/zh-cn|底图坐标]]。
</div>


[[Image:Draft_Constrain_taskpanel_example.png]]
选择更加精准点的另一种方式是:在X、Y或Z的某一特定方向上对指针的移动加以约束。
{{Caption|While the cursor is constrained the task panel locks the values that are not being modified}}


<span id="Usage_horizontal_and_vertical_constraints"></span>
<div class="mw-translate-fuzzy">
== 水平约束与垂直约束 ==
== 水平约束与垂直约束 ==
</div>


<div class="mw-translate-fuzzy">
{{TOCright}}
[[Image:Draft_Constrain_example.jpg]]
{{Caption|通过约束点在垂直方向上的位置而创建的垂线}}

按住{{KEY|Shift}}键,即可在上一个输入点的水平(X)方向或垂直(Y)方向上绘制当前输入点。至于约束的是水平方向还是垂直方向,则取决于按下 {{KEY|Shift}}时鼠标指针的位置;如果按键时指针位于上一个点的东西两侧,则约束的是水平方向;如果按键时指针位于上一个点的南北两侧,则约束的是垂直方向。如果要改变约束方向,只需松开{{KEY|Shift}}键,并将指针移到另一个新位置,再重新按下{{KEY|Shift}}键即可。
按住{{KEY|Shift}}键,即可在上一个输入点的水平(X)方向或垂直(Y)方向上绘制当前输入点。至于约束的是水平方向还是垂直方向,则取决于按下 {{KEY|Shift}}时鼠标指针的位置;如果按键时指针位于上一个点的东西两侧,则约束的是水平方向;如果按键时指针位于上一个点的南北两侧,则约束的是垂直方向。如果要改变约束方向,只需松开{{KEY|Shift}}键,并将指针移到另一个新位置,再重新按下{{KEY|Shift}}键即可。
</div>


== Usage X, Y and Z constraints ==
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.


# 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.


== Notes ==
[[Image:Draft_Constrain_Shift_Taskview_example.png]]
{{Caption|Taskview when using a horizontal constraint while holding the Shift key}}


* Constraining can be combined with [[Draft_Snap|snapping]].
== X, Y, Z constraints ==
* 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.


== Preferences ==
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.


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.


* The default {{MenuCommand|Constrain modifier}} key, {{KEY|Shift}}, can be changed: {{MenuCommand|Edit → Preferences... → Draft → Grid and snapping → Constrain modifier}}.
[[Image:Draft_Constrain_Y_Taskview_example.png]]
* The {{MenuCommand|X}}, {{MenuCommand|Y}} and {{MenuCommand|Z}} shortcuts can be changed: {{MenuCommand|Edit → Preferences... → Draft → Interface → In-command shortcuts}}.
{{Caption|Taskview when using a vertical constraint after pressing the Y key}}




{{Docnav
{{Docnav
|[[Draft_Snap|Snap]]
|[[Draft_Coordinates|Coordinates]]
|[[Draft_Snap|Snapping]]
|[[Draft_Pattern|Pattern]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench|Draft]]
|IconL=
|IconL=
|IconR=
|IconR=

Latest revision as of 20:04, 7 December 2023

Description

描述

底图工作台工具中,您可以通过指针单击3D视图来拾取图形中的点、距离、半径与角度。

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

水平约束与垂直约束

按住Shift键,即可在上一个输入点的水平(X)方向或垂直(Y)方向上绘制当前输入点。至于约束的是水平方向还是垂直方向,则取决于按下 Shift时鼠标指针的位置;如果按键时指针位于上一个点的东西两侧,则约束的是水平方向;如果按键时指针位于上一个点的南北两侧,则约束的是垂直方向。如果要改变约束方向,只需松开Shift键,并将指针移到另一个新位置,再重新按下Shift键即可。

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.