PartDesign: 10B (ISO 606) Sprocket Forces Wrong Roller Diameter and causes 'Math Domain Error'
- Dominant language
- C++
- Stars
- 33.6k
- Forks
- 6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 196
Description
### Problem description
I can't make a sprocket for a 10B roller chain that has a roller diameter of 10.16mm and a pitch of 15.875. That's ISO 606. When I select a sprocket in part design and select ISO 606 10B and enter the chain dimensions, it changes the roller diameter to 9.65, which is actually the distance between the plates. It also throws this error: "ValueError: math domain error"
### Workbench affected?
Part Design
### Steps to reproduce
[sprocket issue.zip](https://github.com/user-attachments/files/25718210/sprocket.issue.zip)
[macro.zip](https://github.com/user-attachments/files/25718216/macro.zip)
### Expected behavior
When selecting ISO 606 10B in the Part Design sprocket generator, the tool should use the correct ISO 606 (BS series) dimensions for 10B-1, with a pitch of 15.875 mm and roller diameter (d1) of 10.16 mm,
### Actual behavior
https://github.com/user-attachments/assets/8a4b050e-8706-471d-867c-8bdb39158643
### Development version About Info (in Safe Mode)
```shell
OS: Windows 10 build 19045
Architecture: x86_64
Version: 1.1.0rc3.20260223 (Git shallow)
Build date: 2026/02/23 23:43:19
Build type: Release
Branch: (HEAD detached at adf7760)
Hash: adf77600e2526bf02804524f0d1991ab1c534abe
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: Croatian/Croatia (hr_HR)
Navigation Style/Orbit Style/Rotation Mode: CAD/Trackball/Drag at cursor
Stylesheet/Theme/QtStyle: ProDark.qss/ProDark/
Logical DPI/Physical DPI/Pixel Ratio: 96/92.6073/1
Installed mods:
* A2plus 0.4.68
* Assembly4 0.60.6
* FreeCAD-themes 2025.11.25
```
### Last known good version (optional)
```shell
```
Contributor guide
Assessment
This issue has not been assessed yet.