Draft Snap/zh-cn: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav
|[[Draft_snap_widget|Snap widget]]
|[[Draft_Constrain|Constraining]]
|[[Draft_Constrain|Constrain]]
|
|[[Draft_Workbench|Draft]]
|[[Draft_Module|Draft_Module]]
|IconL=
|IconR=
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
}}
}}


{{TOCright}}
{{TOCright}}

<span id="Description"></span>
== 描述 ==
== 描述 ==

在[[Draft_Module/zh-cn|底图工作台]]工具中,您可以通过指针单击3D视图来拾取图形中的点、距离、半径与角度。


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
在[[Draft_Workbench/zh-cn|底图工作台]]工具中,您可以通过指针单击3D视图来拾取图形中的点、距离、半径与角度。
选择更加精确点的另一种方式是借助捕捉(snapping)功能。所谓捕捉,意即将您设置的下一个点“黏”在某个已存在的点或另一对象的某部分上。
</div>
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
捕捉功能可用于[[Draft Module|图工作台]]与[[Arch Module|建筑工作台(Arch Workbench)]]中的大多工具,利用捕捉工具栏中的{{Button|[[Image:Snap_Lock.svg|16px]] [[Draft ToggleSnap|Draft ToggleSnap]]}}按钮即可对此功能进行全局开启或关闭。而通过{{MenuCommand|View → Toolbars → Draft Snap}}菜单便可以激活捕捉工具栏。通过点选捕捉工具栏中的各按钮,即可开启或关闭对应的捕捉方法。
捕捉功能可用于[[Draft Workbench|图工作台]]与[[Arch Workbench|建筑工作台(Arch Workbench)]]中的大多工具,利用捕捉工具栏中的{{Button|[[Image:Draft_Snap_Lock.svg|16px]] [[Draft_Snap_Lock|Draft ToggleSnap]]}}按钮即可对此功能进行全局开启或关闭。而通过{{MenuCommand|View → Toolbars → Draft Snap}}菜单便可以激活捕捉工具栏。通过点选捕捉工具栏中的各按钮,即可开启或关闭对应的捕捉方法。
</div>
</div>


[[Image:Draft_Snap_Endpoint_example.png]]
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Caption|利用捕捉功能,令所绘线段垂直于另一线段}}
同时采用多种捕捉方法,可能会便于您将对象绘制在预期位置上。但如果您的鼠标指针频繁被导向在一个错误的点上,那也许就是采用多种捕捉方法所带来的副作用,此时,请尝试仅采用一种捕捉方法。
</div>
</div>


== Snap tools ==
[[Image:Draft_Snap_example.jpg]]
{{Caption|利用捕捉功能,令所绘线段垂直于另一线段}}


These tools are available in the Draft snap toolbar and in the [[Draft_snap_widget|Draft snap widget]].
== Draft Snap toolbar ==


Note that circular edges do not have to be full circles.
* [[Image:Draft_ToggleSnap.svg|32px]] [[Draft_Snap_Lock|Toggle snap]]: toggles [[Draft Snap|object snapping]] globally on or off.

* [[Image:Snap_Endpoint.svg|32px]] [[Draft_Snap_Endpoint|Endpoint]]: snaps to the endpoints of line, arc and spline segments.
* [[Image:Snap_Midpoint.svg|32px]] [[Draft_Snap_Midpoint|Midpoint]]: snaps to the middle point of line and arc segments.
* [[Image:Draft_Snap_Lock.svg|32px]] [[Draft_Snap_Lock|Snap lock]]: enables or disables snapping globally.

* [[Image:Snap_Center.svg|32px]] [[Draft_Snap_Center|Center]]: snaps to the center point of arcs and circles.
* [[Image:Snap_Angle.svg|32px]] [[Draft_Snap_Angle|Angle]]: snaps to the special cardinal points of circles and arcs, at 45° and 90°.
* [[Image:Draft_Snap_Endpoint.svg|32px]] [[Draft_Snap_Endpoint|Snap endpoint]]: snaps to the endpoints of edges.

* [[Image:Snap_Intersection.svg|32px]] [[Draft_Snap_Intersection|Intersection]]: snaps to the intersection of two line or arc segments. Hover the mouse over the two desired objects to activate their intersection snaps.
* [[Image:Snap_Perpendicular.svg|32px]] [[Draft_Snap_Perpendicular|Perpendicular]]: on line and arc segments, snaps perpendicularly to the latest point.
* [[Image:Draft_Snap_Midpoint.svg|32px]] [[Draft_Snap_Midpoint|Snap midpoint]]: snaps to the midpoint of edges.

* [[Image:Snap_Extension.svg|32px]] [[Draft_Snap_Extension|Extension]]: snaps on an imaginary line that extends beyond the endpoints of line segments. Hover the mouse over the desired object to activate its extension snap.
* [[Image:Draft_Snap_Center.svg|32px]] [[Draft_Snap_Center|Snap center]]: snaps to the center point of faces and circular edges, and to the {{PropertyData|Placement}} point of [[Draft_WorkingPlaneProxy|Draft WorkingPlaneProxies]] and [[Arch_BuildingPart|Arch BuildingParts]].
* [[Image:Snap_Parallel.svg|32px]] [[Draft_Snap_Parallel|Parallel]]: snaps on an imaginary line parallel to a line segment. Hover the mouse over the desired object to activate its parallel snap.

* [[Image:Snap_Special.svg|32px]] [[Draft_Snap_Special|Special]]: snaps on special points defined by the object. {{Version|0.17}}
* [[Image:Snap_Near.svg|32px]] [[Draft_Snap_Near|Near]]: snaps to the closest point or edge on the nearest object.
* [[Image:Draft_Snap_Angle.svg|32px]] [[Draft_Snap_Angle|Snap angle]]: snaps to the special cardinal points on circular edges, at multiples of 30° and 45°.

* [[Image:Snap_Ortho.svg|32px]] [[Draft_Snap_Ortho|Ortho]]: snaps on imaginary lines that cross the last point, and extend at 0°, 45° and 90°.
* [[Image:Snap_Grid.svg|32px]] [[Draft_Snap_Grid|Grid]]: snaps to the intersections of the grid lines, if the grid is visible.
* [[Image:Draft_Snap_Intersection.svg|32px]] [[Draft_Snap_Intersection|Snap intersection]]: snaps to the intersection of two edges.

* [[Image:Snap_WorkingPlane.svg|32px]] [[Draft_Snap_WorkingPlane|Working plane]]: always places the snapped point on the current [[Draft SelectPlane|working plane]], even if you snap to a point outside that working plane.
* [[Image:Draft_Snap_Perpendicular.svg|32px]] [[Draft_Snap_Perpendicular|Snap perpendicular]]: snaps to the perpendicular points on faces ({{Version|0.21}}) and edges.
* [[Image:Snap_Dimensions.svg|32px]] [[Draft_Snap_Dimensions|Dimensions]]: shows temporary X and Y dimensions while snapping.

* [[Image:Draft_ToggleGrid.svg|32px]] [[Draft_Snap_Grid|Toggle grid]]: toggles the visibility of the grid on or off.
* [[Image:Draft_Snap_Extension.svg|32px]] [[Draft_Snap_Extension|Snap extension]]: snaps to an imaginary line that extends beyond the endpoints of straight edges.

* [[Image:Draft_Snap_Parallel.svg|32px]] [[Draft_Snap_Parallel|Snap parallel]]: snaps to an imaginary line parallel to straight edges.

* [[Image:Draft_Snap_Special.svg|32px]] [[Draft_Snap_Special|Snap special]]: snaps to special points defined by the object.

* [[Image:Draft_Snap_Near.svg|32px]] [[Draft_Snap_Near|Snap near]]: snaps to the nearest point on faces and edges.

* [[Image:Draft_Snap_Ortho.svg|32px]] [[Draft_Snap_Ortho|Snap ortho]]: snaps to imaginary lines that cross the previous point at multiples of 45°.

* [[Image:Draft_Snap_Grid.svg|32px]] [[Draft_Snap_Grid|Snap grid]]: snaps to the intersections of grid lines.

* [[Image:Draft_Snap_WorkingPlane.svg|32px]] [[Draft_Snap_WorkingPlane|Snap working plane]]: projects snap points onto the current [[Draft_SelectPlane|working plane]].

* [[Image:Draft_Snap_Dimensions.svg|32px]] [[Draft_Snap_Dimensions|Snap dimensions]]: shows temporary X and Y dimensions.

* [[Image:Draft_ToggleGrid.svg|32px]] [[Draft_ToggleGrid|Toggle grid]]: changes the visibility of the grid.

== Advanced snapping ==

* Additional snap points can be obtained by combining two snap options. For example combining [[Draft_Snap_Ortho|Draft Snap Ortho]] and [[Draft_Snap_Extension|Draft Snap Extension]] will give you a snap point at the intersection of their imaginary lines.
* Snapping can be combined with [[Draft_Constrain|constraining]].
* Press {{KEY|Q}} to insert a "hold point" at the current location of the cursor. You can snap to the orthogonal axes of hold points, and to the intersections of these axes. If the [[Draft_Snap_Midpoint|Draft Snap Midpoint]] option is active, you can also snap to the midpoint between two hold points.
* Press {{KEY|`}} one or more times to snap to an object that is obscured by other geometry. This is called "snap cycling". Note that you must move the cursor by a small amount in the [[3D_view|3D view]] after pressing the key.

[[Image:Draft_Snap_example_cycling_1.png]]
{{Caption|Snap cycling 1: The red rectangle was created first therefore it has snap priority. Without snap cycling you cannot snap to the green rectangle where it is overlapped by the red rectangle.}}

[[Image:Draft_Snap_example_cycling_2.png]]
{{Caption|Snap cycling 2: After using the snap cycle key once the green rectangle receives snap priority. Snapping to the midpoint of the overlapped green edge is now possible.}}

== Notes ==

<div class="mw-translate-fuzzy">
同时采用多种捕捉方法,可能会便于您将对象绘制在预期位置上。但如果您的鼠标指针频繁被导向在一个错误的点上,那也许就是采用多种捕捉方法所带来的副作用,此时,请尝试仅采用一种捕捉方法。
</div>


=== Advanced snapping ===
== Preferences ==


See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].
* Additional snap locations can be obtained by combining two snapping methods, such as [[Draft_Snap_Ortho|Draft Ortho]] and [[Draft_Snap_Extension|Draft Extension]], that will give you a snap point at the intersection of their imaginary lines.
* Other snap locations can be obtained by using [[Draft_Constrain|Draft Constrain]]s, that is, by holding {{KEY|Shift}} or pressing {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} while drawing.
* Press {{KEY|Q}} while drawing to insert a "hold point" at the current location of the cursor. You will then be able to snap orthogonally to these hold points, and at the intersections of their orthogonal axes. If [[Draft_Snap_Midpoint|Draft Midpoint]] snapping is enabled, you will also be able to snap at the mid distance between any two hold points. {{Version|0.17}}


* When a [[Draft_Workbench|Draft]] or [[Arch_Workbench|Arch]] command requiring point input is active, the maximum distance at which [[Draft_Snap_Grid|Draft Snap Grid]] detects the intersections of grid lines can be changed on-the-fly by pressing {{KEY|P}} (increase key) or {{KEY|M}} (decrease key). This setting is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → Mod → Draft → snapRange}}. It can also be changed in the task panel of the [[Draft_SelectPlane|Draft SelectPlane]] command.
==Options==
* To only snap when the {{MenuCommand|Snap modifier}} key is held down:
** Deselect: {{MenuCommand|Edit → Preferences... → Draft → Grid and snapping → Always snap}}.
** The default {{MenuCommand|Snap modifier}} key, {{KEY|Ctrl}}, can be changed: {{MenuCommand|Edit → Preferences... → Draft → Grid and snapping → Snap modifier}}.
* To only show the Draft snap toolbar when a command is active select: {{MenuCommand|Edit → Preferences... → Draft → Interface → Only show the Draft snap toolbar during commands}}. {{Version|1.0}}
* The snap symbols can be changed: {{MenuCommand|Edit → Preferences... → Draft → Grid and snapping → Snap symbol style}}.
* The color of the snap symbols and the dimensions of [[Draft_Snap_Dimensions|Draft Snap Dimensions]] can be changed: {{MenuCommand|Edit → Preferences... → Draft → Grid and snapping → Snap symbol color}}.
* The size of the snap symbols depends on: {{MenuCommand|Edit → Preferences... → Display → 3D View → Marker size}}. {{Version|1.0}}
* The mentioned single character keyboard shortcuts can be changed: {{MenuCommand|Edit → Preferences... → Draft → Interface → In-command shortcuts}}.


* The maximum distance at which a point is considered a snapping point is specified in the [[Draft_Preferences|Draft Preferences]], and can also be changed on-the-fly by pressing {{KEY|[}} (increase) or {{KEY|]}} (decrease) keys.
* Pressing {{KEY|A}} while drawing locks the current angle of the line segment being drawn. (''Editor: maybe obsolete?'')


{{Docnav
{{Docnav
|[[Draft_snap_widget|Snap widget]]
|[[Draft_Constrain|Constraining]]
|[[Draft_Constrain|Constrain]]
|
|[[Draft_Workbench|Draft]]
|[[Draft_Module|Draft_Module]]
|IconL=
|IconR=
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
}}
}}
Line 66: Line 111:
{{Draft Tools navi{{#translation:}}}}
{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 09:21, 21 April 2024

描述

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

捕捉功能可用于底图工作台建筑工作台(Arch Workbench)中的大多工具,利用捕捉工具栏中的 Draft ToggleSnap按钮即可对此功能进行全局开启或关闭。而通过View → Toolbars → Draft Snap菜单便可以激活捕捉工具栏。通过点选捕捉工具栏中的各按钮,即可开启或关闭对应的捕捉方法。

利用捕捉功能,令所绘线段垂直于另一线段

Snap tools

These tools are available in the Draft snap toolbar and in the Draft snap widget.

Note that circular edges do not have to be full circles.

  • Snap lock: enables or disables snapping globally.
  • Snap angle: snaps to the special cardinal points on circular edges, at multiples of 30° and 45°.
  • Snap extension: snaps to an imaginary line that extends beyond the endpoints of straight edges.
  • Snap parallel: snaps to an imaginary line parallel to straight edges.
  • Snap special: snaps to special points defined by the object.
  • Snap near: snaps to the nearest point on faces and edges.
  • Snap ortho: snaps to imaginary lines that cross the previous point at multiples of 45°.
  • Snap grid: snaps to the intersections of grid lines.

Advanced snapping

  • Additional snap points can be obtained by combining two snap options. For example combining Draft Snap Ortho and Draft Snap Extension will give you a snap point at the intersection of their imaginary lines.
  • Snapping can be combined with constraining.
  • Press Q to insert a "hold point" at the current location of the cursor. You can snap to the orthogonal axes of hold points, and to the intersections of these axes. If the Draft Snap Midpoint option is active, you can also snap to the midpoint between two hold points.
  • Press ` one or more times to snap to an object that is obscured by other geometry. This is called "snap cycling". Note that you must move the cursor by a small amount in the 3D view after pressing the key.

Snap cycling 1: The red rectangle was created first therefore it has snap priority. Without snap cycling you cannot snap to the green rectangle where it is overlapped by the red rectangle.

Snap cycling 2: After using the snap cycle key once the green rectangle receives snap priority. Snapping to the midpoint of the overlapped green edge is now possible.

Notes

同时采用多种捕捉方法,可能会便于您将对象绘制在预期位置上。但如果您的鼠标指针频繁被导向在一个错误的点上,那也许就是采用多种捕捉方法所带来的副作用,此时,请尝试仅采用一种捕捉方法。

Preferences

See also: Preferences Editor and Draft Preferences.

  • When a Draft or Arch command requiring point input is active, the maximum distance at which Draft Snap Grid detects the intersections of grid lines can be changed on-the-fly by pressing P (increase key) or M (decrease key). This setting is stored: Tools → Edit parameters... → BaseApp → Preferences → Mod → Draft → snapRange. It can also be changed in the task panel of the Draft SelectPlane command.
  • To only snap when the Snap modifier key is held down:
    • Deselect: Edit → Preferences... → Draft → Grid and snapping → Always snap.
    • The default Snap modifier key, Ctrl, can be changed: Edit → Preferences... → Draft → Grid and snapping → Snap modifier.
  • To only show the Draft snap toolbar when a command is active select: Edit → Preferences... → Draft → Interface → Only show the Draft snap toolbar during commands. introduced in version 1.0
  • The snap symbols can be changed: Edit → Preferences... → Draft → Grid and snapping → Snap symbol style.
  • The color of the snap symbols and the dimensions of Draft Snap Dimensions can be changed: Edit → Preferences... → Draft → Grid and snapping → Snap symbol color.
  • The size of the snap symbols depends on: Edit → Preferences... → Display → 3D View → Marker size. introduced in version 1.0
  • The mentioned single character keyboard shortcuts can be changed: Edit → Preferences... → Draft → Interface → In-command shortcuts.