looooo / freecad.gears

a gear module for freecad
GNU General Public License v3.0
252 stars 95 forks source link

Gear WB, Involute gear works only with 15 teeth #179

Open KariKKT opened 1 week ago

KariKKT commented 1 week ago

Hi, I am new to Freecad, Trying to learn abt gears with workbench version 1.3.0. Trying to change the number of teeth from 15 fails and get always this message "InternalInvoluteGear: BRep_Api: command not done". All other gear types I tried seem to work fine.

Windows 11, Freecad 0.21.2 and 1.0.0RC1

Any advise, thanks

looooo commented 1 week ago

This was recently fixed. Try to update the workbench

guillaumechauvat commented 3 days ago

Hi, I just installed the gear workbench from the addon manager but I still have this issue. Is the version in the addon manager not the latest? Should I use pip instead?

Edit: It seems to be the latest version: it says it's the master branch, and I do have obj.num_teeth = 15 at ~/.local/share/FreeCAD/Mod/freecad.gears/freecad/gears/involutegear.py:62

guillaumechauvat commented 3 days ago

It works by adding fp.gear.num_teeth = fp.num_teeth in internalinvolutegear.py at line 278.