I was trying to compound a few paths but received error:
I was able to reproduce that with a simple Profile around a simple box. First, the path is generated just fine, but when I select the Path object and click the Compound icon, error is given.
Code: Select all
File "/home/pekka/builds/FreeCAD/freecad-build/Mod/Path/PathScripts/PathHelix.py", line 409, in execute job["zsafe"], tool.Diameter, <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Diameter'
After browsing inside the PathScripts source for a while, I was able to point out the problem in the findParentJob function inside PathUtils. It seems that it cannot iterate itself out of the Compound object and this again makes the Path unable to determine which tool is loaded by the Tool Controller.
I made a quick fix for it. It is available in my fork. At my very limited testing, it works.
https://github.com/pekkaroi/FreeCAD/com ... 9eb2a71fd7
I have no idea if that is the correct way to deal with that, so I did not want to create any pull requests, but rather ask here. So, is that a bug or am I doing something wrong when creating the compound. And if it really is a bug, is that any good way to fix it?