FreeCAD / FreeCAD/FreeCAD

Part: Creating a Part Sketch on a Coordinate System doesn't work properly

Open
#31,708 1 comment 0 reactions 0 assignees View on GitHub
Mod: Part Status: Needs confirmation
Dominant language
C++
Stars
33.6k
Forks
6k
Avg merge
3d 15h
Merged PRs (30d)
196

Description

### Problem description

When in part mode if you have a local Coordinate system and you click one of the faces. And then click "Create Sketch". You are prompted to create the sketch. When you accept "Planar Face" The face it attaches too is completely wrong. When you then go and inspect where it attached. it attaches to a set of "Phantom" planes

Image

There appears to be a duplicated set of Planes, Axis's, and the Origin point. The ones not contained within the LCS are always wrong. And clicking the plane in the viewport seems to prioritize the wrong plane.

https://github.com/user-attachments/assets/15874598-c2b1-467a-8bbc-c2267750d4e3

It seems like there is an underlying issue of the LCS duplicating entries. But im not entirely sure

### Workbench affected?

Part

### Steps to reproduce

- New file
- Go to Part mode
- Place new LCS
- Rotate the LCS by a bit
- Select a face of the LCS in viewport
- Click "Create Sketch"
- Accept the "Planar Face" option.
- The sketch is not attached properly

### Expected behavior

The sketch should attach to the plane i selected. instead of the fake one

### Actual behavior

The sketch attaches to a phantom plane that is wrong

### Development version About Info (in Safe Mode)

```shell
OS: Windows 11 build 26200
Architecture: x86_64
Version: 26.3.0dev.20260728 (Git shallow)
Build date: 2026/07/28 21:59:12
Build type: Release
Branch: (HEAD detached at 63af5cb2f)
Hash: 63af5cb2f3dbb2b4c7333f6d220b03e05bf92f99
Python 3.11.14, Qt 6.8.3, Coin 4.0.10 (bundled), Pivy 0.6.11 (bundled), Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, Clipper2 , IfcOpenShell 0.8.2, OCC 7.8.1
Locale: English/United States (en_US) [ OS: English/United States (en_US) ]
Stylesheet/Theme/QtStyle: FreeCAD.qss/FreeCAD Dark/
QPA/File dialog/Color dialog: windows/via Win32/via Qt
Navigation Style/Orbit Style/Rotation Mode: CAD/Rounded Arcball/Window center
Logical DPI/Physical DPI/Pixel Ratio: 96/108.888/1.5
OpenGL version/vendor/renderer: 4.6.0 NVIDIA 595.95/NVIDIA Corporation/NVIDIA GeForce RTX 4080/PCIe/SSE2
```

### Last known good version (optional)

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the Part workbench with a rotated local coordinate system, then inspect how selecting a Planar Face chooses the sketch attachment plane. Done means a sketch created from a selected LCS face attaches to that plane rather than to a phantom duplicate.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.