FreeCAD Sketch Not Turning Green When Fully Constrained

In FreeCAD, a sketch typically changes color to bright green once all degrees of freedom are resolved, visually confirming that the profile is fully constrained. However, users frequently encounter situations where the sketch appears complete or the solver panel reports zero degrees of freedom, yet the lines do not turn green. This article covers the primary reasons behind this issue—including custom color settings, unconstrained construction geometry, external references, redundant constraints, and solver refresh bugs—and explains how to resolve them quickly.

1. Modified Color Preferences

The most common non-technical reason is that your color preferences have changed, either manually or via a dark mode theme.

  • Open Edit > Preferences > Sketcher > Colors.
  • Locate the Fully constrained sketch color setting.
  • Ensure it is set to green (default #00FF00 or standard bright green). If a custom stylesheet or theme is applied, it may override this behavior with gray, white, or another color.

2. Overlooked Construction Geometry

Construction geometry (blue lines used as guides) is subject to the same constraint rules as standard regular geometry (white lines). If you have even a single construction point, axis, or circle that retains an unconstrained degree of freedom, the solver will treat the entire sketch as under-constrained, preventing standard geometry from turning green. Check the Tasks panel on the left to see if the solver reports remaining degrees of freedom, and click the blue link that selects the under-constrained elements.

3. External Geometry Interference

External geometry linked from other 3D features (displayed in magenta by default) does not change color when your sketch reaches a fully constrained state. Furthermore, if you added an external edge but left its endpoints or associated reference constraints floating, the sketch remains technically under-constrained. Delete unused external geometry references to ensure clean solver calculations.

4. Over-Constrained or Redundant States

If a sketch contains redundant or conflicting constraints, FreeCAD will not display the standard fully constrained green state. Instead, elements usually turn orange (partially redundant) or red (conflicting/malformed).

  • Look at the Solver messages window in the Tasks tab.
  • If it warns about redundant constraints, click the provided link to highlight and delete them.
  • Ensure the Auto remove redundants option in the Sketcher settings is toggled on to prevent this automatically.

5. Micro-Gaps in Endpoints

Lines that visually appear connected might not actually share a coincident constraint. A micro-gap between two endpoints will keep degrees of freedom active without being immediately obvious. Use the Validate sketch tool (Sketch > Validate sketch) to automatically detect and highlight open vertices, missing coincidences, or duplicated points.

6. Solver Display Glitches

Occasionally, the display does not update immediately after applying the final constraint due to an internal viewport refresh delay.

  • Click the Recompute button (or press F5).
  • Close the sketch by clicking Close in the Tasks tab and then reopen it.
  • Toggle the visibility of the sketch using the Spacebar in the tree view to force the 3D viewport to redraw the active constraint colors.