Not what i was asking. A "slice" should cut the Body into 2 (or more) bodies, each containing the features needed to construct (parametrically if applicable ) the individual bodies. Not exactly, if you slice a wheel only that portion which has a valve stem will contain one, the other part of the slice may not. The slice is not a clone operation. A cylinder can be a body, sliced in half along the radial direction, creates two bodies. Each of which are still cylinders. However sliced to remove an arc will result in 2 bodies neither of which is necessarily a cylinder.freedman wrote: ↑Mon Dec 10, 2018 8:06 amIt seems like the "slice" should be a new Body and hold all the features of the slice. How about the analogy of a car wheel made up of, metal wheel, lug holes, valve stem, tire. If you take a slice of the wheel assy, that should be a new Body with all those features. I presume you will want to modify it afterwards so it has to include all the sketches and features of it's original body. The "Obslice" object slice is a Body copy with a Pocket to everything else.
At best perhaps, perhaps, I can carve that into a macro. Would be a first for me.DeepSOIC wrote: ↑Mon Dec 10, 2018 7:40 amMost of the code is already done in Lattice2:
https://github.com/DeepSOIC/Lattice2/bl ... Filter2.py
So it can be just transferred to FC, replacing a few Lattice2-specific things, and adding the commands to toolbars and menu (adding the commands for Part WB is in C++).
Don't call things bodies which aren't. Please follow the explanations and links above on what a body is in FreeCAD.PlaneAnimal wrote: ↑Tue Dec 11, 2018 1:12 amYou may be right. My lack of understanding may stem from not understanding the logic/usefulness of the current bodyOBJECT slice functionality. ...
The current feature already produces new bodiesOBJECTs, they are hidden and copied and identified in the tree using the additional steps Compound->Compound Filter.... My suggestion is to remove the Compound Filter and and replace the sliced bodyOBJECT with the resulting bodyOBJECT slices.