FreeCAD Auto-Constraints Toggle Explained
The auto-constraints toggle in FreeCAD's Sketcher Workbench allows the software to automatically infer and apply geometric constraints as you draw. By dynamically analyzing cursor movement and existing geometry, this feature instantly assigns relationships such as horizontal, vertical, coincident, and tangent without requiring manual selection. This overview explains the primary purpose of the auto-constraints toggle, how it accelerates 3D modeling, and how to manage it to prevent unintended sketch behavior.
Core Purpose of Auto-Constraints
In parametric CAD design, every sketch requires geometric rules (constraints) to define how elements relate to each other and maintain stability. The primary purpose of the auto-constraints toggle is to accelerate this process. Instead of drafting a shape and manually selecting each line and vertex to apply rules, FreeCAD detects your drawing intent in real time.
Common constraints applied automatically include:
- Horizontal and Vertical: Applied when lines are drawn close to the sketch axes.
- Coincident: Applied when a new endpoint or vertex is placed on an existing vertex.
- Point on Object: Applied when a vertex is placed directly along an existing line or curve.
- Tangency and Perpendicularity: Applied when drawing connecting arcs or lines at approximate 90-degree angles.
How to Control the Feature
The auto-constraints setting can be toggled via the Sketcher's Edit Controls panel in the task view. When checked, the solver predicts constraints based on proximity thresholds.
- Global Toggle: Checking or unchecking the "Auto constraints" option in the Sketcher panel turns the automated behavior on or off for the entire session.
- Temporary Bypass: While drawing, you can hold down the Shift key to temporarily disable auto-snapping and auto-constraints. Releasing the key restores the feature immediately.
When to Enable or Disable the Toggle
While auto-constraints streamline the initial layout phase, selective use is essential for clean modeling:
- Keep Enabled: Best for rapid prototyping, orthogonal shapes, structural cross-sections, and standard mechanical profiles where right angles, coincident vertices, and axial alignments are standard.
- Disable or Bypass: Best for complex organic contours, steep non-standard angles, or dense clusters of geometry. In tight spaces, FreeCAD may guess incorrectly, creating redundant or conflicting constraints that result in over-constrained sketches that are difficult to troubleshoot.