FreeCAD / FreeCAD/FreeCAD

PartDesign: Ability for Hole size to auto-determine the Thread size applied (instead of defaulting to the smallest thread size)

Open
#26,595 2 comments 0 reactions 0 assignees View on GitHub
Mod: Part Design Type: Feature
Dominant language
C++
Stars
33.6k
Forks
6k
Avg merge
3d 17h
Merged PRs (30d)
196

Description

### Problem description

When selecting a circular hole, pad or sketch and applying the Hole - Thread function it defaults to smallest thread listed, a great enhancement would be if it inherits the selected shape size so selecting a 5mm hole defaults to M6 with metric regular selected enhancing workflow.

### Workbench affected?

Part Design

### Steps to reproduce

select a 5mm round pocket, apply a hole and select metric regular it defaults to M1.2

### Expected behavior

defaults to M6 since a 5mm round pocket is selected

### Actual behavior

M1.2 is selected as default

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

```shell
OS: Ubuntu 24.04.3 LTS (ubuntu:GNOME/ubuntu/xcb)
Architecture: x86_64
Version: 1.2.0dev.20251230 (Git shallow) AppImage
Build date: 2025/12/30 17:40:39
Build type: Release
Branch: grafted,grafted
Hash: f5759e580b6330906beca12b4be419b030a088ab
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.2, OCC 7.8.1
Locale: Dutch/Netherlands (nl_NL)
Navigation Style/Orbit Style/Rotation Mode: Touchpad/Rounded Arcball/Window center
Stylesheet/Theme/QtStyle: FreeCAD.qss/FreeCAD Dark/
Logical DPI/Physical DPI/Pixel Ratio: 96/108.43/1
Installed mods:
* fasteners 0.5.43
* Woods 1.0.2
* sheetmetal 0.7.58
```

### Last known good version (optional)

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the behavior in the Part Design Hole - Thread function with a 5 mm round pocket and metric regular threads. Trace how the selected hole size and default thread size are chosen, then verify that the default becomes M6 for the described case without changing other thread selections.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.