Part and PartDesign: Difference between revisions

From FreeCAD Documentation
(Beginning of Part vs Part Design discussion. Stills work, links and graphics)
 
No edit summary
 
(32 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<languages/>
There has been much discussion of this over the years about the differences and ramifications of using the Part and Part Design workbenches.
{{TOCright}}
<translate>


==Overview== <!--T:1-->
It is a good idea to use one or the other until the user is comfortable with one, then learn the other. It is also typically recommended that new users not mix them until the ramifications are of doing so are understood.


<!--T:2-->
Let's talk about those ramifications.
There has been much discussion over the years about the differences and ramifications of using the [[File:Workbench_Part.svg|24px]] [[Part_Workbench|Part]] and the [[File:Workbench_PartDesign.svg|24px]] [[PartDesign_Workbench|PartDesign]] workbenches.


<!--T:3-->
It is often said Part WB is more CSG style modeling. This is where the operator combines various primitives to end up with a lump in the desired shape.
It is a good idea to use one or the other until the user is comfortable with one, then learn the other. It is also typically recommended that new users not mix them until the ramifications of doing so are understood.
(In fact Part WB goes one step further than just primitives and allows the operator to use a sketch+extrude operation to create random shapes as well.)
When each primitive or shape is created, it has no relationship to other objects created, it is a single solitary solid. This condition remains so, until, the operator uses some operation to combine them (typically a Boolean that adds or subtracts them).


<!--T:4-->
Let's talk about those ramifications.

==Part Workbench Concepts== <!--T:5-->

<!--T:6-->
Part Workbench is essentially [[Constructive_solid_geometry|CSG style modeling]]. The operator combines various primitives to end up with a representation of the desired shape. (In fact, Part Workbench goes one step further than just primitives and allows the operator to use a sketch+extrude operation (or sketch+revolve, loft, sweep ...) to create random shapes as well.)
When each primitive or shape is created, it has no relationship to other objects created (except sketches and their attachments), it is a single solitary solid.

<!--T:7-->
[[File:Part_CSG_Prims.png|frame|centre|Solitary solids]]


<!--T:8-->
This condition remains so, until, the operator uses some operation to combine them (typically a Boolean that adds or subtracts them).
Each starting solid remains accessible separately and the operation creates a new object.

<!--T:9-->
The take away is the single solitary solid bit and the combining them bit.
The take away is the single solitary solid bit and the combining them bit.


==PartDesign Workbench Concepts== <!--T:10-->
In Part Design WB the Body object represents a single solitary cumulative solid. The first lump created under the Body (be it a Pad from a sketch, or a BaseFeature from outside the Body) represents a lump of raw material that will be further processed to refine it to the desired final shape (solid). It is cumulative in the sense that each operation adds or removes material. The lowest/last operation (the current Tip of the Body) is the current state. Any other feature under the Body but above the Tip, does not represent a complete/stand alone solid. Only the Body (basically a proxy for the tip) or the Tip represent a complete solid.

<!--T:11-->
In the PartDesign Workbench the Body object is constructed directly as a single solitary cumulative solid.

<!--T:28-->
The 1st step in a body must be a block of material, either from an additive primitive or an extrusion from a sketch, or an imported shape (then called Base Feature).

<!--T:29-->
This initial block of material will be changed sequentially until the desired final shape (solid) is obtained.

<!--T:30-->
It is cumulative in the sense that each operation adds or removes material.

<!--T:31-->
By default, the "tip" of the body - unless there is a voluntary change in the visualization of a particular feature - is the last operation performed on the body. This is the current and visible state of the body, ready to be changed again by new feature.

<!--T:32-->
Any function under the body represents the cumulative shape of the solid from the 1st feature to the feature considered.

<!--T:33-->
So '''to have the complete solid''', on the one hand the Tip feature must be the last stage of the construction of this solid, and on the other hand '''it is the body which must be selected''' and not a stage of its construction.

<!--T:34-->
This will make it possible, in the event of a modification, '''to always have the last version of the solid represented.'''


<!--T:35-->
'''Note and additions :'''
At each time of the construction, the last function used is the "Tip", which can be defined too as "active stage in the construction of the object" or "stage preceding the next action in the construction of the object". When the object's drawing is complete, Tip is naturally the last stage or feature of the construction. But if desired, in case of forgetting, any feature of the construction can be provisionally declared as Tip: it then becomes the step preceding the next action in the construction of the object, which means that new feature(s) can be inserted anywhere in the construction, '''on condition not to create any incompatible with the suite'''.

<!--T:36-->
When everything is finished, you have to redeclare the last feature as Tip, which corresponds to the finished object.

<!--T:12-->
[[File:Part_Design_Cumulativ.png|frame|centre|Cumulative Body Solid]]

<!--T:13-->
This image shows a Body. It is a cumulative solid that consists of a padded sketch and a cone primitive. This is a single solid.

<!--T:37-->
If Tip on '''Pad''', the pad can exist separately, but if Tip on '''Cone''', the cone cannot exist separately (Tip on cone = pad + cone).

<!--T:14-->
(Another thing mentioned often is a Body '''''MUST''''' be a single contiguous solid. This means all geometry created by a feature in the Body ''must'' touch it's predecessor.)

==The Ramifications== <!--T:15-->

<!--T:16-->
Although not recommended for newcomers, it is possible to combine tools from Part workbench and PartDesign workbench, provided you know what you are doing. For example :

<!--T:38-->
People get caught when they attempt to use some feature under the Body (rather than the Body itself) as one selection of a Part Workbench Boolean operation. This is a problem, because the selected feature does not represent '''THE''' complete solid.

<!--T:17-->
In a sense, from a Part Workbench standpoint, the Body represents another primitive. So, using a Body (remember it is a proxy for the tip) and a Part Workbench object to do a Boolean is valid. But the resulting object is a Part Workbench object. And, thus PartDesign Workbench tools can't be used on it any longer.

<!--T:18-->
And, it can get even more complicated. If you create a new Body and drag the result from the previous paragraph into it, a BaseObject is created. And you can go off an use the PartDesign Workbench tools on it.

==The Caveats== <!--T:19-->

<!--T:20-->
There is a caveat with the Tip and it's representation of the single solid in the Body. ''If'' the tip is a subtractive feature and is used in a dress up operation, for instance a Mirror, the Mirror is operating on the underlying feature (a pocket for example). Thus the cumulative solid is not mirrored, but the subtractive feature is. The result of this must create a single solid.

<!--T:21-->
In this example, a mirror of the tip (which is the pocket of the slot) around any of the base planes, or even a face of the solid will not produce a mirrored solid of the entire model. (In fact, it will produce a Mirrored feature in the tree that is essentially empty.)

<!--T:22-->
[[File:PhantomMirror.png|frame|centre|Solitary solids]]

<!--T:23-->
In this example, a mirror of the tip (which is the pocket of the slot) is performed around the datum plane and produces a mirrored slot:

<!--T:24-->
[[File:MirroredSlot.png|frame|centre|Solitary solids]]

<!--T:25-->
See the [[File:PartDesign_Mirrored.svg|24px|link=PartDesign_Mirrored]] [[PartDesign_Mirrored|PartDesign Mirrored]] tool wiki page for more information.

==Comparison== <!--T:39-->

<!--T:40-->
You can see below the same example built with each of the two workbenches. Of course, there are always several possible construction timelines with each workbench.
[[File:PartWBvsPartDesignWBexample.jpg|frame|center|Compare constructions with Part workbench and PartDesign workbench]]

<!--T:41-->
{| class="wikitable"
|+
|-
! In [[Image:Workbench_PartDesign.svg|24px]] PartDesign workbench !! In [[Image:Workbench_Part.svg|24px]] Part workbench
|-
| 01- [[File:PartDesign_Body.svg|32px]] New body > [[File:Sketcher_NewSketch.svg|32px]] New Sketch in XZ plane || 01- [[Image:Workbench_Sketcher.svg|24px]] Sketcher workbench > [[Image:Sketcher_NewSketch.svg‎‎|32px]] Sketch in XZ plane
|-
| [[File:01sketchXZ PartWBvsPartDesignWBn.jpg|center]] ||
[[File:01Psketch PartWBvsPartDesignWBn.jpg|center]]
|-
|}

<!--T:42-->
{| class="wikitable"
|+
|-
| 02- [[File:PartDesign_Revolution.svg|32px]] Revolution / Z || 02- [[Image:Part_Revolve.svg|32px]] Revolve / Z
|-
| [[File:02revolutionZ PartWBvsPartDesignWBn.jpg|center]] ||
[[File:02revolveZ PartWBvsPartDesignWBn.jpg|center]]
|-
|}

<!--T:43-->
{| class="wikitable"
|+
|-
| 03- [[File:Sketcher_NewSketch.svg|32px]] New Sketch in XY plane || 03- [[Image:Workbench_Sketcher.svg|24px]] Sketcher workbench > [[Image:Sketcher_NewSketch.svg‎‎|32px]] New Sketch in XY plane
|-
| [[File:03sketchXY PartWBvsPartDesignWBn.jpg|center]] ||
[[File:03sketchXY PartWBvsPartDesignWBn.jpg|center]]
|-
|}

<!--T:44-->
{| class="wikitable"
|+
|-
| 04- [[File:PartDesign_Pocket.svg|32px]] Pocket || 04a- [[Image:Part_Extrude.svg|32px]] Extrude
|-
| [[File:04pocket PartWBvsPartDesignWBn.jpg|center]] ||
[[File:04aExtrude PartWBvsPartDesignWB.jpg|center]]
|-
|}

<!--T:45-->
{| class="wikitable"
|+
|-
| || 04b- [[Image:Part_Cut.svg|32px]] Cut
|-
| [[File:00nothing PartWBvsPartDesignWB.jpg|center]] ||
[[File:04bCut PartWBvsPartDesignWB.jpg|center]]
|-
|}

<!--T:46-->
{| class="wikitable"
|+
|-
| 05- [[File:Sketcher_NewSketch.svg|32px]] New Sketch in XZ plane || 05- [[Image:Workbench_Sketcher.svg|24px]] Sketcher workbench > [[Image:Sketcher_NewSketch.svg‎‎|32px]] New Sketch in XZ plane
|-
| [[File:05sketchXZ PartWBvsPartDesignWB.jpg|center]] ||
[[File:05PsketchXZ PartWBvsPartDesignWB.jpg|center]]
|-
|}

<!--T:47-->
{| class="wikitable"
|+
|-
| 06- [[File:PartDesign_Pad.svg|32px]] Pad sym/XZ || 06a- [[Image:Part_Extrude.svg|32px]] Extrude sym/XZ
|-
| [[File:06padSymXZ PartWBvsPartDesignWB.jpg|center]] ||
[[File:06aExtrude PartWBvsPartDesignWB.jpg|center]]
|-
|}

<!--T:48-->
{| class="wikitable"
|+
|-
| || 06b- [[Image:Workbench_Draft.svg|24px]] Draft [[File:Draft_PolarArray.svg|32px]] Polar Pattern
|-
| [[File:00nothing PartWBvsPartDesignWB.jpg|center]] ||
[[File:06bDraftPolarPattern PartWBvsPartDesignWB.jpg|center]]
|-
|}

<!--T:49-->
{| class="wikitable"
|+
|-
| || 06c- [[Image:Part_Fuse.svg|32px]] Fusion
|-
| [[File:00nothing PartWBvsPartDesignWB.jpg|center]] ||
[[File:06cFusion PartWBvsPartDesignWB.jpg|center]]
|-
|}

<!--T:50-->
{| class="wikitable"
|+
|-
| 07- [[File:Sketcher_NewSketch.svg|32px]] New Sketch on base planar face || 07- [[Image:Workbench_Sketcher.svg|24px]] Sketcher workbench > [[Image:Sketcher_NewSketch.svg‎‎|32px]] New Sketch in XZ plane
|-
| [[File:07sketchBaseSupFace PartWBvsPartDesignWB.jpg|center]] ||
[[File:07PsketchXZ PartWBvsPartDesignWB.jpg|center]]
|-
|}

<!--T:51-->
{| class="wikitable"
|+
|-
| 08- [[File:PartDesign_Hole.svg|32px]] Hole - counterbore || 08a- [[Image:Part_Revolve.svg|32px]] Revolve
|-
| [[File:08hole-counterbore PartWBvsPartDesignWB.jpg|center]] ||
[[File:08aRevolve PartWBvsPartDesignWB.jpg|center]]
|-
|}

<!--T:52-->
{| class="wikitable"
|+
|-
| || 08b- [[Image:Workbench_Draft.svg|24px]] Draft [[File:Draft_PolarArray.svg|32px]] Polar Pattern
|-
| [[File:00nothing PartWBvsPartDesignWB.jpg|center]] ||
[[File:08bDraftPolarPattern PartWBvsPartDesignWB.jpg|center]]
|-
|}

<!--T:53-->
{| class="wikitable"
|+
|-
| 09- [[Image:PartDesign_PolarPattern.svg|32px]] Polar Pattern of Hole and Pad || 09- [[Image:Part_Cut.svg|32px]] Cut
|-
| [[File:09polarPatternHoleAndPad PartWBvsPartDesignWB.jpg|center]] ||
[[File:09Cut PartWBvsPartDesignWB.jpg|center]]
|-
|}

<!--T:54-->
Compare the construction trees in the two workbenches as well as their organization and reading timeline :

<!--T:55-->
{| class="wikitable"
|+
|-
| 10- Construction tree in PartDesign workbench || 10- Construction tree in Part workbench
|-
| [[File:PartvsPartDesign TreePartDesignWB.jpg|center]] ||
[[File:PartvsPartDesign TreePartWB.jpg|center]]
|-
|}


==Conclusion== <!--T:26-->
The Ramifications:
People get caught when they attempt to use some feature under the Body (rather than the Body itself) as one selection of a Part WB Boolean operation. This is a problem, because the selected feature does not represent a complete solid.


<!--T:27-->
In a sense, from a Part WB standpoint, the Body represents another primitive. So, using a Body (remember it is a proxy for the tip) and a Part WB object to do a Boolean is valid. But the resulting object is a Part WB object. And, thus Part Design WB tools can't be used on it any longer.
Part and PartDesign workbenches can be used together with some care, creating quite complex models.
[[#Top|Top]]


</translate>
And, it can get even more complicated. If you create a new Body and drag the result from the previous paragraph into it, a BaseObject is created. And you can go off an use the Part Design WB tools on it.
{{Part Tools navi{{#translation:}}}}
{{PartDesign Tools navi{{#translation:}}}}
{{Sketcher Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 07:44, 17 February 2023

Overview

There has been much discussion over the years about the differences and ramifications of using the Part and the PartDesign workbenches.

It is a good idea to use one or the other until the user is comfortable with one, then learn the other. It is also typically recommended that new users not mix them until the ramifications of doing so are understood.

Let's talk about those ramifications.

Part Workbench Concepts

Part Workbench is essentially CSG style modeling. The operator combines various primitives to end up with a representation of the desired shape. (In fact, Part Workbench goes one step further than just primitives and allows the operator to use a sketch+extrude operation (or sketch+revolve, loft, sweep ...) to create random shapes as well.) When each primitive or shape is created, it has no relationship to other objects created (except sketches and their attachments), it is a single solitary solid.

Solitary solids


This condition remains so, until, the operator uses some operation to combine them (typically a Boolean that adds or subtracts them). Each starting solid remains accessible separately and the operation creates a new object.

The take away is the single solitary solid bit and the combining them bit.

PartDesign Workbench Concepts

In the PartDesign Workbench the Body object is constructed directly as a single solitary cumulative solid.

The 1st step in a body must be a block of material, either from an additive primitive or an extrusion from a sketch, or an imported shape (then called Base Feature).

This initial block of material will be changed sequentially until the desired final shape (solid) is obtained.

It is cumulative in the sense that each operation adds or removes material.


By default, the "tip" of the body - unless there is a voluntary change in the visualization of a particular feature - is the last operation performed on the body. This is the current and visible state of the body, ready to be changed again by new feature.

Any function under the body represents the cumulative shape of the solid from the 1st feature to the feature considered.

So to have the complete solid, on the one hand the Tip feature must be the last stage of the construction of this solid, and on the other hand it is the body which must be selected and not a stage of its construction.

This will make it possible, in the event of a modification, to always have the last version of the solid represented.


Note and additions : At each time of the construction, the last function used is the "Tip", which can be defined too as "active stage in the construction of the object" or "stage preceding the next action in the construction of the object". When the object's drawing is complete, Tip is naturally the last stage or feature of the construction. But if desired, in case of forgetting, any feature of the construction can be provisionally declared as Tip: it then becomes the step preceding the next action in the construction of the object, which means that new feature(s) can be inserted anywhere in the construction, on condition not to create any incompatible with the suite.

When everything is finished, you have to redeclare the last feature as Tip, which corresponds to the finished object.

Cumulative Body Solid

This image shows a Body. It is a cumulative solid that consists of a padded sketch and a cone primitive. This is a single solid.

If Tip on Pad, the pad can exist separately, but if Tip on Cone, the cone cannot exist separately (Tip on cone = pad + cone).

(Another thing mentioned often is a Body MUST be a single contiguous solid. This means all geometry created by a feature in the Body must touch it's predecessor.)

The Ramifications

Although not recommended for newcomers, it is possible to combine tools from Part workbench and PartDesign workbench, provided you know what you are doing. For example :

People get caught when they attempt to use some feature under the Body (rather than the Body itself) as one selection of a Part Workbench Boolean operation. This is a problem, because the selected feature does not represent THE complete solid.

In a sense, from a Part Workbench standpoint, the Body represents another primitive. So, using a Body (remember it is a proxy for the tip) and a Part Workbench object to do a Boolean is valid. But the resulting object is a Part Workbench object. And, thus PartDesign Workbench tools can't be used on it any longer.

And, it can get even more complicated. If you create a new Body and drag the result from the previous paragraph into it, a BaseObject is created. And you can go off an use the PartDesign Workbench tools on it.

The Caveats

There is a caveat with the Tip and it's representation of the single solid in the Body. If the tip is a subtractive feature and is used in a dress up operation, for instance a Mirror, the Mirror is operating on the underlying feature (a pocket for example). Thus the cumulative solid is not mirrored, but the subtractive feature is. The result of this must create a single solid.

In this example, a mirror of the tip (which is the pocket of the slot) around any of the base planes, or even a face of the solid will not produce a mirrored solid of the entire model. (In fact, it will produce a Mirrored feature in the tree that is essentially empty.)

Solitary solids

In this example, a mirror of the tip (which is the pocket of the slot) is performed around the datum plane and produces a mirrored slot:

Solitary solids

See the PartDesign Mirrored tool wiki page for more information.

Comparison

You can see below the same example built with each of the two workbenches. Of course, there are always several possible construction timelines with each workbench.

Compare constructions with Part workbench and PartDesign workbench
In PartDesign workbench In Part workbench
01- New body > New Sketch in XZ plane 01- Sketcher workbench > Sketch in XZ plane
02- Revolution / Z 02- Revolve / Z
03- New Sketch in XY plane 03- Sketcher workbench > New Sketch in XY plane
04- Pocket 04a- Extrude
04b- Cut
05- New Sketch in XZ plane 05- Sketcher workbench > New Sketch in XZ plane
06- Pad sym/XZ 06a- Extrude sym/XZ
06b- Draft Polar Pattern
06c- Fusion
07- New Sketch on base planar face 07- Sketcher workbench > New Sketch in XZ plane
08- Hole - counterbore 08a- Revolve
08b- Draft Polar Pattern
09- Polar Pattern of Hole and Pad 09- Cut

Compare the construction trees in the two workbenches as well as their organization and reading timeline :

10- Construction tree in PartDesign workbench 10- Construction tree in Part workbench

Conclusion

Part and PartDesign workbenches can be used together with some care, creating quite complex models.

Top