(1) Am I correct to presume the Tool Dock is still rather new? Other than creating it, it's not actually used in any of the tutorials I've found.
Almost everything I do experimenting around causes tons of senseless error messages, most of which are utterly cryptic, and what little that makes sense seems to be wrong. But, rather than dwell on what's wrong, I'd like to focus on the right way to do things in the first place...
I created a simple part with 4 pockets, and I want to cut it out with an endmill like you might do with a laser cutter.
(2) BTW, Is there no way to copy and mirror sketch objects?
I just drew and constrained all the symmetric lines and arcs manually...
(3) BTW, What does this mean? The sketcher told me everything is fully constrained, but this error is repeated over and over again.
Code: Select all
File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Main\Gui\Job.py", line 1634, in clearSelection
self.updateSelection()
File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Main\Gui\Job.py", line 1371, in updateSelection
self.form.setOrigin.setEnabled(False)
<class 'AttributeError'>: 'NoneType' object has no attribute 'setOrigin'
I saved the part file.
[Edit] Later, I went back and closed FreeCAD, relaunched it, and opened this same file, and this error didn't reappear. So, I'll take that as a memory leak bug...
Anyway, I created a Job and set the Stock and job origin, and closed the window.
The Model Data shows TC:Default Tool, but I want to use the tool I created.
I display the Tool Selector (Dock) and see the tool I want to use, but I haven't seen any documentation or YouTube tutorials showing what to do with it.
if I click the tool I want to use on the Tool Library and click the Add to Job button it creates a Body001 and Body002 objects in the Job, this is what it reports:
Code: Select all
10:36:05 Traceback (most recent call last):
10:36:05 File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Tool\Gui\BitLibrary.py", line 459, in selectedOrAllToolControllers
10:36:05 tools = self.selectedOrAllTools()
10:36:05 File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Tool\Gui\BitLibrary.py", line 439, in selectedOrAllTools
10:36:05 tools.append((toolNr, PathToolBit.Factory.CreateFrom(toolPath)))
10:36:05 File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Tool\Bit.py", line 492, in CreateFrom
10:36:05 bit = Factory.CreateFromAttrs(data, name, path)
10:36:05 File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Tool\Bit.py", line 476, in CreateFromAttrs
10:36:05 obj = Factory.Create(name, attrs["shape"], path)
10:36:05 File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Tool\Gui\Bit.py", line 173, in Create
10:36:05 tool = PathToolBit.ToolBitFactory.Create(self, name, shapeFile, path)
10:36:05 File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Tool\Bit.py", line 501, in Create
10:36:05 obj.Proxy = ToolBit(obj, shapeFile, path)
10:36:05 File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Tool\Bit.py", line 183, in __init__
10:36:05 self._setupBitShape(obj)
10:36:05 File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Tool\Bit.py", line 371, in _setupBitShape
10:36:05 self._setupProperty(obj, prop, attributes)
10:36:05 File "C:\Program Files\FreeCAD 0.21\Mod\Path\Path\Tool\Bit.py", line 336, in _setupProperty
10:36:05 obj.addProperty(typ, prop, grp, dsc)
10:36:05 NameError: {'sclassname': 'class Base::NameError', 'sErrMsg': 'Property Unnamed#ToolBit001.Shape already exists', 'sfile': 'E:\\FreeCAD\\FreeCAD-0.21\\src\\App\\DynamicProperty.cpp', 'iline': 173, 'sfunction': 'class App::Property *__cdecl App::DynamicProperty::addDynamicProperty(class App::PropertyContainer &,const char *,const char *,const char *,const char *,short,bool,bool)', 'swhat': 'Property Unnamed#ToolBit001.Shape already exists', 'btranslatable': False, 'breported': False}
Body001 is my tool bit, and body002 is my tool shape. they are Job objects, not listed in the Job.Tools collector.
so, I stopped right there and closed the part and exited FreeCAD so as to not stumble accross any memory leaks, and started it up again.
I opened this part again, and double-clicked on the Job object to edit it.
I selected the Tools tab, and clicked the Add button. I selected my tool. It didn't actually add it to the list of tools (in the Job Editor), but it gave me the same error except for the top 4 lines (before the one that ends in CreateFrom)
... and I'm stuck.
I attached the part file I created, and the tool shape and bit files too.
as always, thanks for your help.
[Edit] In the interest of turnaround time, I went back and restarted FreeCAD and reloaded the part, created a job without adding my tool, created a profile and offset patterns in some pockets, and attached are what the paths look like. That's bizarre. I can't figure out a pattern to those weird paths, but they seem to be correct sometimes, then changing a Step Over parameter back and forth from 25 to 30 or something benign like that changes it back to forth from correct to wrong.