FreeCAD / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
19.36k stars 4k forks source link

[Problem] PartDesign: Behavior of the tip property should be changed #9527

Open xtemp09 opened 1 year ago

xtemp09 commented 1 year ago

Is there an existing issue for this?

Forums discussion

No response

Version

0.21 (Development)

Full version info

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.33110 (Git)
Build type: Release
Branch: master
Hash: 18e40941ceb36c52701a7c74ea26043ef3385701
Python 3.10.10, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Russian/Russia (ru_RU)

Subproject(s) affected?

PartDesign

Issue description

wwmayer wrote:

I wonder about the general usefulness of the Move command because it's not even able to handle simple cases.

  1. Create a body
  2. Create a second body
  3. Create a sketch with a rectangle
  4. Create a pad
  5. Move the pad to the first body. The sketch will be moved too.
  6. Modify the pad and confirm your changes
  7. You get the warning: PartDesign::Body: Link(s) to object(s) 'Pad' go out of the allowed scope 'Body001'. Instead, the linked object(s) reside within 'Body Body'.

The problem is that the second body holds a reference to the moved pad (Tip property). After manually resetting the Tip in the property editor fixes the issue.

Anything else?

Discussed at #9398

Code of Conduct

wwmayer commented 1 year ago

I don't think it's the Tip property to blame but the Move command. It's up to the Move command to make sure that after moving an object to a different body all links of the old body are redirected so that they don't point to objects inside the new body.

adrianinsaval commented 1 year ago

I agree, what is missing is that when moving the tip of a body the previous feature should be set as tip in the original body