View Issue Details

IDProjectCategoryView StatusLast Update
0004754FreeCADBugpublic2022-01-24 20:18
Reporterbasnijholt Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
Product Version0.19 
Summary0004754: recompute undos removeSplitter
DescriptionWhen calling `move`, the object moves, then I call `obj.Shape.removeSplitter()` and `doc.recompute` and the shifted box is unmoved.
Steps To ReproduceExecute the following in the Python console:

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)
box2.Shape = box2.Shape.removeSplitter()

doc.recompute()
Tags#pending-forum
FreeCAD InformationOS: 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)

Activities

openBrain

2021-10-13 13:52

developer   ~0015967

@basnijholt : the problem is that you're not authorized to override a Shape property. You should use a new object.
I tested and there seems to me that there are 2 problem though : 1) the rendered shape is temporarily overridden (before change is rejected) + 2) trying to assign a new shape resets the Placement property -- this is what you see --

Could you please open a new thread in our forum according our reporting guidelines and post the link here ? Thx

Kunda1

2022-01-24 20:16

administrator   ~0016281

Forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=65635

yorik

2022-03-03 13:55

administrator   ~0017097

This ticket has been migrated to GitHub as issue 6266.

Issue History

Date Modified Username Field Change
2021-09-27 14:02 basnijholt New Issue
2021-10-13 13:52 openBrain Status new => feedback
2021-10-13 13:52 openBrain Note Added: 0015967
2021-10-13 13:52 openBrain Tag Attached: #post-to-forum
2022-01-24 20:15 Kunda1 Steps to Reproduce Updated
2022-01-24 20:16 Kunda1 Note Added: 0016281
2022-01-24 20:18 Kunda1 Tag Detached: #post-to-forum
2022-01-24 20:18 Kunda1 Tag Attached: #pending-forum