FCGears: some issues when using values from Spreadsheet

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
epileftric
Posts: 17
Joined: Fri Dec 22, 2017 4:20 pm
Location: Argentina
Contact:

FCGears: some issues when using values from Spreadsheet

Post by epileftric »

Hi! I want to start debugging some issues I have while using FCGears with parameters taken from a spreadsheet.

Some of the values are correctly assigned but some don't. The gears starts showing some errors after the assignment and it shows the "std::bad_cast" exception.

I don't know where to start debugging with FreeCAD, I'm developer and I've used freecad for so long that I'm willing to contribute, this is a good starting point. Can somebody point me out where to start?
0666: read and write access for all!
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FCGears: some issues when using values from Spreadsheet

Post by looo »

epileftric wrote: Thu Nov 07, 2019 1:34 pm I don't know where to start debugging with FreeCAD, I'm developer and I've used freecad for so long that I'm willing to contribute, this is a good starting point. Can somebody point me out where to start?
There are some limitations of the gears. Not all values are accepted. But "std::bad_cast" sounds like something different. I guess it's best to post your freecad-version and the FreeCAD-file.
epileftric
Posts: 17
Joined: Fri Dec 22, 2017 4:20 pm
Location: Argentina
Contact:

Re: FCGears: some issues when using values from Spreadsheet

Post by epileftric »

I'm using this version:

Code: Select all

OS: Ubuntu 18.04.3 LTS (Budgie:GNOME/budgie-desktop)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18320 (Git) AppImage
Build type: Release
Branch: LinkStage3
Hash: 1488153018418e0d8b7357c4a418235231e4c40e
Python version: 3.7.3
Qt version: 5.6.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
And the file is attached, the issues are with the bevel gear's heigth
Attachments
Bevel.FCStd
(61.48 KiB) Downloaded 35 times
0666: read and write access for all!
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FCGears: some issues when using values from Spreadsheet

Post by looo »

Which value do I have to assign to reproduce the problem?
epileftric
Posts: 17
Joined: Fri Dec 22, 2017 4:20 pm
Location: Argentina
Contact:

Re: FCGears: some issues when using values from Spreadsheet

Post by epileftric »

Any value would trigger the issue, but I just realized that with newer versions it just works. I feel like an A-hole now.
0666: read and write access for all!
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FCGears: some issues when using values from Spreadsheet

Post by looo »

Such things can happen for the 0.19_pre builds. Good to know it's solved.

If you move on with this project, it would be nice if you can share the final output. A parametric tool to create a pair of gears is a requested feature here:
https://github.com/looooo/freecad.gears/issues/33
epileftric
Posts: 17
Joined: Fri Dec 22, 2017 4:20 pm
Location: Argentina
Contact:

Re: FCGears: some issues when using values from Spreadsheet

Post by epileftric »

Will try to! I did this gearbox as a forward design (not to say quick and dirty) to do some testing, now I'm starting from scratch to do it properly with a spreadsheet and well calculated distances.
Attachments
gearbox.png
gearbox.png (164.42 KiB) Viewed 1092 times
0666: read and write access for all!
Post Reply