Привязка к объектам
In the Draft Workbench and the Arch Workbench you can create geometry by picking points in the 3D view or by entering coordinates in the task panel of commands. Another way of selecting points is by snapping. Snapping allows to select exact geometric points on, or defined by, existing objects or the grid. You can for example snap to the endpoint of a line, to the center of a circle, or to the intersection of two edges.
Snapping to the endpoint of an edge
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 Endpoint: snaps to the endpoints of edges.
- Snap Midpoint: snaps to the midpoint of edges.
- Snap Center: snaps to the center point of faces and circular edges, and to the ДанныеPlacement point of Draft WorkingPlaneProxies and Arch BuildingParts.
- Snap Angle: snaps to the special cardinal points on circular edges, at multiples of 30° and 45°.
- Snap Intersection: snaps to the intersection of two edges.
- Snap Perpendicular: snaps to the perpendicular point on edges.
- 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 or edges.
- Snap Ortho: snaps to imaginary lines that cross the previous point at 0°, 45°, 90° and 135°.
- Snap Grid: snaps to the intersections of grid lines.
- Snap Dimensions: shows temporary X and Y dimensions.
- Toggle Grid: switches the grid on or off.
- 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 Draft Snap Midpoint option is active, you can also snap to the midpoint between two hold points. 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
- Press 3D view after pressing the 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
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.
- Multiple snap options can be active at the same time, but it is advisable to only activate the snap options you really need. Activating too many can slow things down.
- It is not a good idea to have Draft Snap Near permanently active as it takes precedence over many other snap options.
Note that after changing some preferences you must restart FreeCAD.
- 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 (increase key) or (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 mod key is held down:
- Deselect: Edit → Preferences... → Draft → Grid and snapping → Snapping → Always snap (disable snap mod).
- The default Snap mod key, , can be changed: Edit → Preferences... → Draft → Grid and snapping → Snapping → Snap mod.
- To only show the Draft Snap toolbar when a command is active:
- Select: Edit → Preferences... → Draft → Grid and snapping → Snapping → Show Draft Snap toolbar.
- Select: Edit → Preferences... → Draft → Grid and snapping → Snapping → Hide Draft Snap toolbar after use.
- The snap symbols can be changed: Edit → Preferences... → Draft → Visual settings → Visual settings → Snap symbol style.
- The color of the snap symbols and the dimensions of Draft Snap Dimensions can be changed: Edit → Preferences... → Draft → Visual settings → Visual settings → Color.
- The mentioned single character keyboard shortcuts can be changed: Edit → Preferences... → Draft → User interface settings → In-Command Shortcuts.