FreeCAD / FreeCAD/FreeCAD

PartDesign: Select plane to attach sketch-> Sketch has wrong orientation

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

Description

### Problem description

In some cases, sketches get not attached correctly at plane faces of lofts.

### Workbench affected?

Part Design

### Steps to reproduce

If I try to attach a new sketch in partdesign to a plane (in this vase created by a loft), the orientation in some cases is flipped (see attached model):
If You open the attached FreeCad File You see a plane which is built by a loft with some arcs over it (see pic 1).
Image

You look to front. If You attach a sketch to this plane, the sketch is opened, but it is in top direction, not in front direction, see pic 2
Image

[cassutt_ng.zip](https://github.com/user-attachments/files/27285897/cassutt_ng.zip)
[orientatio.py](https://github.com/user-attachments/files/27285898/orientatio.py)

### Expected behavior

Sketch applied in the correct direction

### Actual behavior

Sketch flipped

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

```shell
OS: openSUSE Tumbleweed (XFCE/xfce/xcb)
Architecture: x86_64
Version: 1.1.1.20260414 (Git shallow) AppImage
Build date: 2026/04/14 22:09:59
Build type: Release
Branch: (HEAD detached at 0108fd4b4)
Hash: 0108fd4b4850cc46e625b60e53cea7a7bbe69f8d
Python 3.11.14, Qt 6.8.3, Coin 4.0.3, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, IfcOpenShell 0.8.4, OCC 7.8.1
Locale: English/United States (en_US)
Navigation Style/Orbit Style/Rotation Mode: CAD/Rounded Arcball/Window center
Stylesheet/Theme/QtStyle: FreeCAD.qss/FreeCAD Light/
Logical DPI/Physical DPI/Pixel Ratio: 91/92.6073/1
```

### Last known good version (optional)

```shell
1.0.0
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.