Part Design Involute Gear Edit Broken?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
quick61
Posts: 3793
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Part Design Involute Gear Edit Broken?

Postby quick61 » Sun Nov 02, 2014 4:35 pm

Looking for conformation on this one.

FreeCAD Version Information -

OS: Kubuntu 14.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4151 (Git)
Branch: master
Hash: ae09625140651423ed7b1035fa59395d206e532f
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1


Steps to reproduce - Open Part Design Workbench and create New Document. Go to Part Design > Involute gear... and click

The result I get is a blank 3D view, while the Involute gear shape is added to the tree view. There is no edit dialog and the following is output to the Report view.

Code: Select all

Traceback (most recent call last):
  File "/home/mark/Build/FreeCAD/Mod/PartDesign/InvoluteGearFeature.py", line 114, in setEdit
    taskd = _InvoluteGearTaskPanel(self.Object,mode)
  File "/home/mark/Build/FreeCAD/Mod/PartDesign/InvoluteGearFeature.py", line 136, in __init__
    self.form=FreeCADGui.PySideUic.loadUi(FreeCAD.getHomePath() + "Mod/PartDesign/InvoluteGearFeature.ui")
  File "<string>", line 4, in <module>
<type 'exceptions.RuntimeError'>: Cannot open file
Running the Python command 'PartDesign_InvoluteGear' failed:
Traceback (most recent call last):
  File "<string>", line 1, in <module>

Failed to set object 'InvoluteGear' in edit mode
To see the involute gear that was generated one must manually refresh the 3D view and zoom extents.

I'm sure this was working within the last couple-3 weeks ago.

Mark
Last edited by quick61 on Sun Nov 02, 2014 6:03 pm, edited 1 time in total.
This post made with 0.0% Micro$oft products - GOT LINUX?
User avatar
bejant
Posts: 6061
Joined: Thu Jul 11, 2013 3:06 pm

Re: Part Design Involute Gear Edit Broken?

Postby bejant » Sun Nov 02, 2014 5:51 pm

Same here. After creating the gear, it seems the recompute button (or F5) needs to be invoked, then the view is zoomed way in so the gear is off the view, all just as you experienced. The last time I used the involute gear creator was a couple weeks ago as well...

OS: Ubuntu 14.04.1 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.15.4146 (Git)
Branch: master
Hash: 76906d20a0c141b503e5a582aee221068d827bf2
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
User avatar
quick61
Posts: 3793
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Part Design Involute Gear Edit Broken?

Postby quick61 » Sun Nov 02, 2014 6:10 pm

Thanks for confirming bejant. :)

Mantas Ticket issue #1814
This post made with 0.0% Micro$oft products - GOT LINUX?
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Part Design Involute Gear Edit Broken?

Postby NormandC » Sun Nov 02, 2014 6:25 pm

I have a month-old compiled version. Involute gear works as expected in this version, but not in the latest Daily Builds PPA version.

I wonder if this is Quarter related?

Involute gear works as expected in the following version.
OS: Ubuntu 14.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4061 (Git)
Branch: master
Hash: e08788eca90b51a33f4d045778e2cf8a3ef3fade
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.1
User avatar
quick61
Posts: 3793
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Part Design Involute Gear Edit Broken?

Postby quick61 » Sun Nov 02, 2014 6:51 pm

normandc wrote:I wonder if this is Quarter related?
My thoughts are leaning more towards the recent Python related commits, but only a guess on my part.

Whatever it is, just hope it's an easy fix as those are always the best ones.

Mark
This post made with 0.0% Micro$oft products - GOT LINUX?
Lubber
Posts: 2
Joined: Sun Nov 16, 2014 11:25 am

Re: Part Design Involute Gear Edit Broken?

Postby Lubber » Mon Nov 17, 2014 10:00 pm

Hi All,

as this is my first post in this Forum, I want to thank all who develop this software.
I am training to work to realize designs since some weeks.
There are good tutorials in the web, thank you for this as well.

In this post I want just to confirm the above described bug for Open Suse:
______________-
...
Traceback (most recent call last):
File "/usr/lib64/FreeCAD/Mod/PartDesign/InvoluteGearFeature.py", line 114, in setEdit
taskd = _InvoluteGearTaskPanel(self.Object,mode)
File "/usr/lib64/FreeCAD/Mod/PartDesign/InvoluteGearFeature.py", line 136, in __init__
self.form=FreeCADGui.PySideUic.loadUi(FreeCAD.getHomePath() + "Mod/PartDesign/InvoluteGearFeature.ui")
File "<string>", line 4, in <module>
<type 'exceptions.RuntimeError'>: Cannot open file
Running the Python command 'PartDesign_InvoluteGear' failed:
Traceback (most recent call last):
File "<string>", line 1, in <module>

Failed to set object 'InvoluteGear' in edit mode

....
__________________

Here the Version work with:

OS: "openSUSE 13.1 (Bottle) (x86_64)"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4165 (Git) (Packman)
Branch: master
Hash: 8d8c727ac57b93c2b61c1bd32450971b7a346ac9
Python version: 2.7.6
Qt version: 4.8.5
Coin version: 3.1.3
OCC version: 6.7.1


I did not find a way to get back to my previous working version, as the packman repository offers the newest version only.

Is there a simple workaround I can use till this is fixed?
(It is not urgent, as I have time to realize my project)

Best regards

Lubber
User avatar
quick61
Posts: 3793
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Part Design Involute Gear Edit Broken?

Postby quick61 » Tue Nov 18, 2014 1:03 am

Hello Lubber, Welcome to FreeCAD and the forum.

The error is from the initial dialog, and if you use the involute gear, it is made, just not visible at the moment you click on it. To see it you will need to click on the recompute icon then on the zoom extents. You can now select it in the tree view and in the data tab change it's parameters to whatever you need. Just click on the recompute button and maybe the zoom all to see the changes.

Mark
This post made with 0.0% Micro$oft products - GOT LINUX?
Lubber
Posts: 2
Joined: Sun Nov 16, 2014 11:25 am

Re: Part Design Involute Gear Edit Broken?

Postby Lubber » Tue Nov 18, 2014 9:17 pm

Hello Mark,

thank you for the quick help. :D
This works for me.

Klaus
User avatar
quick61
Posts: 3793
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Part Design Involute Gear Edit Broken?

Postby quick61 » Tue Nov 18, 2014 9:47 pm

Lubber wrote:Hello Mark,

thank you for the quick help. :D
This works for me.

Klaus
Sure thing. With any luck, someone will pick up the ticket before long and get it working once again in the master / daily builds.

Mark
This post made with 0.0% Micro$oft products - GOT LINUX?
wmayer
Site Admin
Posts: 15479
Joined: Thu Feb 19, 2009 10:32 am

Re: Part Design Involute Gear Edit Broken?

Postby wmayer » Wed Nov 19, 2014 10:21 am

git commit b11acfd fixes the problem.
cron