[0.17] PartDesign: How to move a body into a part

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: [0.17] PartDesign: How to move a body into a part

Post by NormandC »

DeepSOIC wrote:The code I posted doesn't fix the faulty move. The code does the move in a different manner. Just don't drag Body into Part.
Doh!!! :oops:

Thanks for setting me right. I was really puzzled.

Edit: I saved the code as a macro, it will be useful while waiting for a fix.
vestom
Posts: 2
Joined: Tue Jun 20, 2017 5:21 pm

Re: [0.17] PartDesign: How to move a body into a part

Post by vestom »

DeepSOIC wrote: Sun Apr 16, 2017 11:53 am It is a known bug, sorry.
You can work around it using Py console:

Code: Select all

App.ActiveDocument.Part.Group = App.ActiveDocument.Part.Group + [App.ActiveDocument.Body]
(replace "Part" with the name of your part, and "Body" with the name of your body)
Thanks!! This tip saves my day - until the fix is in place (maybe this one? issue #2835)

I started used FreeCAD 0.16 for some work and was disappointed with its lack of proper part structuring and relative positioning, making complex models a frustrating experience. Reading about PartDesignNext made me try out 0.17 in the Ubuntu daily PPA. I must say introduction of Body and Part is a huge improvement! ... However with the important detail that I couldn't restructure until I read this tip.

Now I must try to google if it is possible to somehow clone Parts - then I can make simple assemblies :-)

Cheers
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: [0.17] PartDesign: How to move a body into a part

Post by easyw-fc »

vestom wrote: Tue Jun 20, 2017 5:42 pm Reading about PartDesignNext made me try out 0.17 in the Ubuntu daily PPA. I must say introduction of Body and Part is a huge improvement! ... However with the important detail that I couldn't restructure until I read this tip.

Cheers
now you should be able to simple drag Body and sub-parts inside a Part container and vice-versa
https://forum.freecadweb.org/viewtopic. ... 63#p178714
Mark81
Posts: 121
Joined: Tue Jul 12, 2022 2:21 pm

Re: [0.17] PartDesign: How to move a body into a part

Post by Mark81 »

With this version:

Code: Select all

OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.29501 (Git) Snap 134
Build type: Release
Branch: master
Hash: 842fd4772bd2135168ebff0deccbfb1bd0639ae2
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.2
Locale: Italian/Italy (it_IT)
Installed mods: 
  * fasteners 0.3.45
  * 3D_Printing_Tools
  * CurvedShapes 1.0.3
  * Manipulator 1.4.5
  * Assembly4 0.12.0
  * fcgear 1.0.0
  * A2plus 0.4.56a
  * POV-Ray-Rendering
  * Render 2022.2.0
I still need the Python hack in order to move a feature (i.e. a Fillet or a Revolution) under a Part.
Bance
Veteran
Posts: 4250
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: [0.17] PartDesign: How to move a body into a part

Post by Bance »

This is a 5 year old post, and refers to bodies not features.

Features are not stand alone solids it is not possible to manipulate them is this manner.

Part and Part Design
User avatar
mfro
Posts: 666
Joined: Sat Sep 23, 2017 8:15 am

Re: [0.17] PartDesign: How to move a body into a part

Post by mfro »

Mark81 wrote: Wed Jul 13, 2022 7:52 am With this version:

Code: Select all

OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.29501 (Git) Snap 134
Build type: Release
Branch: master
Hash: 842fd4772bd2135168ebff0deccbfb1bd0639ae2
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.2
Locale: Italian/Italy (it_IT)
Installed mods: 
  * fasteners 0.3.45
  * 3D_Printing_Tools
  * CurvedShapes 1.0.3
  * Manipulator 1.4.5
  * Assembly4 0.12.0
  * fcgear 1.0.0
  * A2plus 0.4.56a
  * POV-Ray-Rendering
  * Render 2022.2.0
I still need the Python hack in order to move a feature (i.e. a Fillet or a Revolution) under a Part.
Moving a Body into a Part works fine for me (you were resurrecting a very old post where PartDesign was still in its early days).
I suppose you have a different problem that stems from mixing objects from the Part and PartDesign workbenches.
Cheers,
Markus
Post Reply