I must be going crazy. I just updated FreeCAD and I no longer have Part.BOPTools etc.. Am I missing something?? Has this been deprecated? And if so, what is the new way of doing things? This is the code I am trying to run:
Code: Select all
import Part
doc = FreeCAD.newDocument('Embed')
Gui.ActiveDocument.ActiveView.viewAxonometric()
b1 = Part.makeBox(10,10,60,App.Vector(0,0,0),App.Vector(0,0,1))
b2 = Part.makeBox(10,10,60,App.Vector(6,6,6),App.Vector(0,0,1))
r = Part.BOPTools.SplitAPI.booleanFragments([b1,b2],"Standard", 0.0)
Part.show(r)
Gui.SendMsgToActiveView("ViewFit")
Code: Select all
>>> r = Part.BOPTools.SplitAPI.booleanFragments([b1,b2],"Standard", 0.0)
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'BOPTools'
Code: Select all
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10641 (Git)
Build type: Release
Branch: (detached from 3074c2e)
Hash: 3074c2e756b14c2f06ada11da14b1123e9ecd0f8
Python version: 2.7.13
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0