Shapestring move behavior

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Shapestring move behavior

Post by carlopav »

thomas-neemann wrote: Mon Oct 18, 2021 12:48 pm
carlopav wrote: Thu Sep 30, 2021 9:57 am ...
If so please report them. Those are problems indeed
here is the next one


after draft downgrade with this message

7.86e-07 <App> Document.cpp(3439): Recursive calling of recompute for document Unnamed


95 pillow block.stp.zip



OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.25997 (Git) AppImage
Build type: Release
Branch: master
Hash: 77b198048a63f1e9ca15eef64c8042d599a14cf3
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: German/Germany (de_DE)
Please open a dedicated topic... Thx
You can tag me if you want, but i have no time to dedicate to bug fixing now, sorry
follow my experiments on BIM modelling for architecture design
bluebaer
Posts: 24
Joined: Wed Aug 21, 2019 8:29 pm
Location: Germany

Re: Shapestring move behavior

Post by bluebaer »

Hi

actually I found another way to reproduce with a combination of partdesign and draft:

1. Generate a 10 / 10 / 10 box in Partdesign a 0 / 0 / 0
2. Mark the box
3. Execute "Draft.move([FreeCAD.ActiveDocument.Body, FreeCAD.ActiveDocument.Box], FreeCAD.Vector(-10.0, -10.0, 0.0), copy=False)"

=> you will see the box is relocated -20 /-20 / 0

I checked this with:

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.1015.24301 +3962 (Git)
Build type: Release
Branch: LinkStage3
Hash: c6cb39697eb439caf7e5bd0208ca3082a7820547
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Shapestring move behavior

Post by carlopav »

bluebaer wrote: Fri Oct 22, 2021 8:03 pm 3. Execute "Draft.move([FreeCAD.ActiveDocument.Body, FreeCAD.ActiveDocument.Box], FreeCAD.Vector(-10.0, -10.0, 0.0), copy=False)"

=> you will see the box is relocated -20 /-20 / 0
Looks correct to me because you are moving the body and the container box too...
follow my experiments on BIM modelling for architecture design
bluebaer
Posts: 24
Joined: Wed Aug 21, 2019 8:29 pm
Location: Germany

Re: Shapestring move behavior

Post by bluebaer »

Hi

please try the following, so you can trace my perception:

1. Generate a new body
2. Generate a 10 / 10 / 10 box in Partdesign a 0 / 0 / 0
3. blank the body
4. Generate a new body
5. Generate a 10 / 10 / 10 box in Partdesign a 0 / 0 / 0
6. Mark the 2. box
7. Execute "Draft.move([FreeCAD.ActiveDocument.Body, FreeCAD.ActiveDocument.Box], FreeCAD.Vector(-10.0, -10.0, 0.0), copy=False)"
8. unblank frist body

The result is follwing file:
test Cube move.FCStd
(12.15 KiB) Downloaded 30 times
My perception is that the part was actually moved 20 / 20 / 0. Can you trace?
test Cube move.FCStd
(12.15 KiB) Downloaded 30 times
I tested this with following version. The funny thing is now that you can not undo the Draft.move.

OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.26155 (Git)
Build type: Release
Branch: master
Hash: 0926a4148bcff11249fd4f56bc30256102ffe105
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: German/Germany (de_DE)
Attachments
pciture.PNG
pciture.PNG (4.6 KiB) Viewed 2026 times
User avatar
Sinusvag
Posts: 5
Joined: Sat Jun 20, 2020 7:35 pm

Re: Shapestring move behavior

Post by Sinusvag »

The same (?) problem persists in the newest appimage for linux, info below.

When an object is selected in Draft and moved, the operation is performed twice and the object is moved double the amount. The following error is displayed:

21:56:41 1125.06 <App> Document.cpp(3428): Recursive calling of recompute for document plaanritning_freecad

As is said in another thread, the "solution" is to turn off the recomputes, which in turn makes for a rather messy workflow.

Cheers!

OS: Ubuntu 20.10 (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24365 (Git) AppImage
Build type: Release
Branch: (HEAD detached at d200959)
Hash: d2009595cb09a1d134cdea4cbe0e4e994e93d8db
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United States (en_US)
User avatar
Sinusvag
Posts: 5
Joined: Sat Jun 20, 2020 7:35 pm

Re: Shapestring move behavior

Post by Sinusvag »

Edit: Problem still there in latest weekly appimage build. Same error message and double translation of object.

11:59:29 19.8166 <App> Document.cpp(3440): Recursive calling of recompute for document plaanritning_freecad


OS: Ubuntu 20.10 (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.26498 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 1895593)
Hash: 18955931c7f0926a4cd9d2719be5a433b49ae56e
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United States (en_US)
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Shapestring move behavior

Post by Roy_043 »

We really need a reproducible scenario:
Attach a simple file.
And provide step-by-step instructions.

Note that double moves can happen if you select a nested object and its container.
Post Reply