Execute the following in the Python console:
Code: Select all
from freecad import app as FreeCAD
import Draft
doc = FreeCAD.newDocument("testDoc")
box1 = doc.addObject("Part::Box", "Box1")
doc.recompute()
box2 = Draft.move(box1, FreeCAD.Vector(1, 0, 0), copy=True)
doc.recompute()
If I now run the following code:
Code: Select all
box2.Shape = box2.Shape.removeSplitter()
doc.recompute()
Is this expected? If yes, how can I use removeSplitter() such that the position of the object stays fixed.
I am using:
OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: (HEAD detached at 0.19.2)
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)