PartDesign Pad: Difference between revisions

From FreeCAD Documentation
(Fix formatting of button)
No edit summary
 
(63 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:37-->
<!--T:37-->
{{Docnav
{{Docnav
Line 14: Line 15:
{{GuiCommand
{{GuiCommand
|Name=PartDesign Pad
|Name=PartDesign Pad
|MenuLocation=Part Design → Pad
|MenuLocation=Part Design → Create an additive feature → Pad
|Workbenches=[[PartDesign_Workbench|PartDesign]]
|Workbenches=[[PartDesign_Workbench|PartDesign]]
|SeeAlso=[[PartDesign_Pocket|PartDesign Pocket]]
|Shortcut=
|Version=
|SeeAlso=
}}
}}


Line 24: Line 23:


<!--T:41-->
<!--T:41-->
The {{Button|[[Image:PartDesign_Pad.svg|16px]] [[PartDesign Pad|PartDesign Pad]]}} tool extrudes a sketch into a solid in a direction normal to the sketch plane. As of {{VersionPlus|0.17}} faces on the solid can also be used.
The '''Pad''' tool extrudes a sketch or a face of a solid along a straight path.


</translate>
</translate>
Line 32: Line 31:
<!--T:34-->
<!--T:34-->
''Sketch (A) shown on the left; end result after pad operation (B) on the right.''
''Sketch (A) shown on the left; end result after pad operation (B) on the right.''

<!--T:25-->
'''Note:''' {{VersionMinus|0.16}} If the selected sketch is mapped to the face of an existing solid or another Part Design feature, the pad will be fused to it.


==Usage== <!--T:26-->
==Usage== <!--T:26-->


<!--T:42-->
<!--T:42-->
# Select the sketch to be padded. '''Note:''' As of {{VersionPlus|0.17}} a face on the existing solid can alternatively be used.
# Select one sketch or face to be padded. {{Version|0.20}}: Alternatively you can select several sketches or faces.
# Press the {{Button|[[Image:PartDesign_Pad.svg|16px]] '''Pad'''}} button.
# Press the {{Button|[[Image:PartDesign_Pad.svg|16px]] [[PartDesign_Pad|Pad]]}} button.
# Set the Pad parameters, see the [[#Options|Options]] below.
# Set the Pad parameters, see the [[#Options|Options]] below.
# Click {{KEY|OK}}.
# Click {{Button|OK}}.

<!--T:78-->
When selecting a single sketch, it can have multiple enclosed profiles inside a larger one, for example a rectangle with two circles inside it. But the profiles may not intersect each other. {{Version|0.20}}


==Options== <!--T:27-->
==Options== <!--T:27-->


<!--T:43-->
<!--T:43-->
When creating a pad, the Combo view automatically switches to the Tasks pane, showing the '''Pad parameters''' dialogue.
When creating a pad, the '''Pad parameters''' dialog will be shown. It offers the following settings:


<!--T:28-->
<!--T:28-->
Line 55: Line 54:


<!--T:44-->
<!--T:44-->
Type offers five different ways of specifying the length to which the pad will be extruded.
Type offers five different ways of specifying the length to which the pad will be extruded:


====Dimension==== <!--T:45-->
====Dimension==== <!--T:45-->


<!--T:46-->
<!--T:46-->
Enter a numeric value for the length of the pad. The default direction for extrusion is away (outside of) the support, but it can be changed by ticking the '''Reversed''' option. Extrusions occur [http://en.wikipedia.org/wiki/Surface_normal normal] to the defining sketch plane. With the option '''Symmetric to plane''' the pad will extend half of the given length to either side of the sketch plane. Negative dimensions are not possible. Use the '''Reversed''' option instead.
Enter a numeric value for the length of the pad. The default direction for extrusion is away (outside of) the support, but it can be changed by ticking the '''Reversed''' option. Extrusions occur by default [http://en.wikipedia.org/wiki/Surface_normal normal] to the defining sketch plane. This can be changed by specifying another '''Direction'''. With the option '''Symmetric to plane''' the pad will extend half of the given length to either side of the plane. Negative dimensions are not possible. Use the '''Reversed''' option instead.

====Two dimensions==== <!--T:47-->

<!--T:48-->
This allows to enter a second length in which the pad should extend in the opposite direction (into the support). Again can be changed by ticking the '''Reversed''' option.


====To last==== <!--T:49-->
====To last==== <!--T:49-->
Line 80: Line 74:


<!--T:54-->
<!--T:54-->
The pad will extrude up to a face in the support that can be chosen by clicking on it. If there is no support, no selections will be accepted.
The pad will extrude up to a face in the model that can be chosen by clicking on it.

====Two dimensions==== <!--T:47-->

<!--T:48-->
This allows to enter a second length in which the pad should extend in the opposite direction (into the support). The directions can be switched by ticking the '''Reversed''' option.


===Length=== <!--T:30-->
===Length=== <!--T:30-->


<!--T:55-->
<!--T:55-->
Defines the length of the pad. Multiple units can be used independently of the user's units preferences (m, cm, mm, nm, ft or ', in or ").
Defines the length of the pad. Multiple units can be used independently of the user's units preferences (m, cm, mm, nm, ft or ', in or "). This option is only available when '''Type''' is either '''Dimension''' or '''Two dimensions'''.


=== Use custom direction === <!--T:59-->
=== Offset to face === <!--T:63-->

<!--T:64-->
Offset from face at which the pad will end. This option is only available when '''Type''' is either '''To last''', '''To first''' or '''Up to face'''.

===Direction=== <!--T:65-->

==== Direction/edge ==== <!--T:66-->

<!--T:67-->
You can select the direction of the extrusion:

<!--T:68-->
* '''Sketch normal:''' The sketch or face is extruded along its normal. If you have selected several sketches or faces to be extruded, the normal of the first one will be used. {{Version|0.20}}
* '''Select reference...:''' The sketch is extruded along an edge of the 3D model. When this is method selected, you can click on any edge in the 3D model and it becomes the direction vector for the extrusion. {{Version|0.20}}
* '''Custom direction:''' The sketch is extruded along a direction that can be specified via vector values.

==== Show direction ==== <!--T:59-->


<!--T:60-->
<!--T:60-->
If checked, the pad direction will be shown. In case the pad uses a '''Custom direction''', it can be changed. {{Version|0.20}}
{{Version|0.19}}

If checked, the pad direction will not be the normal vector of the sketch but the given vector. The pad length is however set according to the normal vector direction.
==== Length along sketch normal ==== <!--T:61-->

<!--T:62-->
If checked, the pad length is measured along the sketch normal, otherwise along the custom direction. {{Version|0.20}}


=== Symmetric to plane === <!--T:31-->
=== Symmetric to plane === <!--T:31-->


<!--T:56-->
<!--T:56-->
Tick the checkbox to extend half of the given length to either side of the sketch plane.
Tick the checkbox to extrude half of the given length to either side of the sketch or plane.


=== Reversed === <!--T:32-->
=== Reversed === <!--T:32-->
Line 102: Line 122:
<!--T:57-->
<!--T:57-->
Reverses the direction of the pad.
Reverses the direction of the pad.

=== Taper angle === <!--T:69-->

<!--T:70-->
{{Version|0.20}}

<!--T:71-->
Tapers the pad in the extrusion direction by the given angle. A positive angle means the outer pad border gets wider. This option is only available if '''Type''' is either '''Dimension''' or '''Two dimensions'''. Note that inner structures receive the opposite taper angle. This is done to facilitate the design of molds and molded parts.

<!--T:72-->
Limitations:
* Sketches containing [[B-Splines|B-Splines]] often cannot be properly tapered. This is a limitation of the [[OpenCASCADE|OpenCASCADE]] kernel that FreeCAD uses.
* For larger angles tapering will fail if the end face of the pad would have fewer edges than the start face/sketch.

=== 2nd length === <!--T:73-->

<!--T:74-->
Defines the length of the pad in the opposite extrusion direction. Multiple units can be used independently of the user's units preferences (m, cm, mm, nm, ft or ', in or "). This option is only available if '''Type''' is '''Two dimensions'''.

=== 2nd taper angle === <!--T:75-->

<!--T:76-->
{{Version|0.20}}

<!--T:77-->
Tapers the pad in the opposite extrusion direction by the given angle. A positive angle means the outer pad border gets wider. This option is only available if '''Type''' is '''Two dimensions'''. Note that inner structures receive the opposite taper angle. This is done to facilitate the design of molds and molded parts.


==Properties== <!--T:35-->
==Properties== <!--T:35-->
Line 108: Line 154:
* {{PropertyData|Type}}: Type of ways how the pad will be extruded, see [[#Options|Options]].
* {{PropertyData|Type}}: Type of ways how the pad will be extruded, see [[#Options|Options]].
* {{PropertyData|Length}}: Defines the length of the pad, see [[#Options|Options]].
* {{PropertyData|Length}}: Defines the length of the pad, see [[#Options|Options]].
* {{PropertyData|Length2}}: Second pad length in case the {{PropertyData|Type}} option '''TwoLengths''' is used, see [[#Options|Options]].
* {{PropertyData|Length2}}: Second pad length in case the {{PropertyData|Type}} is '''TwoLengths''', see [[#Options|Options]].
* {{PropertyData|Use Custom Vector}}: {{Version|0.19}} If checked, the pad direction will not be the normal vector of the sketch but the given vector, see [[#Options|Options]].
* {{PropertyData|Use Custom Vector}}: If checked, the pad direction will not be the normal vector of the sketch but the given vector, see [[#Options|Options]].
* {{PropertyData|Direction}}: {{Version|0.19}} Vector of the pad direction if the {{PropertyData|Use Custom Vector}} is used.
* {{PropertyData|Direction}}: Vector of the pad direction if {{PropertyData|Use Custom Vector}} is used.
* {{PropertyData|Along Sketch Normal}}: If ''true'', the pad length is measured along the sketch normal. Otherwise and if {{PropertyData|Use Custom Vector}} is used, it is measured along the custom direction. {{Version|0.20}}
* {{PropertyData|Up To Face}}: A face the pad will extrude up to, see [[#Options|Options]].
* {{PropertyData|Up To Face}}: A face the pad will extrude up to, see [[#Options|Options]].
* {{PropertyData|Offset}}: Offset from face in which the pad will end. This is only taken into account if the {{PropertyData|Type}} option '''UpToLast''', '''UpToFirst''' or '''UpToFace''' is used.
* {{PropertyData|Offset}}: Offset from face in which the pad will end. This is only taken into account if the {{PropertyData|Type}} option '''UpToLast''', '''UpToFirst''' or '''UpToFace''' is used.
* {{PropertyData|Refine}}: {{VersionPlus|0.17}} true or false. Cleans up residual edges left after the operation. This property is initially set according to the user's settings (found in ''Preferences → Part design → General → Model settings''). It can be manually changed afterwards. This property will be saved with the FreeCAD document.
* {{PropertyData|Refine}}: True or false. Cleans up residual edges left after the operation. This property is initially set according to the user's settings (found in {{MenuCommand|Preferences → Part design → General → Model settings}}). It can be manually changed afterwards. This property will be saved with the FreeCAD document.


==Limitations== <!--T:33-->
==Limitations== <!--T:33-->


<!--T:58-->
<!--T:58-->
* Like all Part Design features, Pad creates a solid, thus the sketch must include a closed profile or it will fail with a ''Failed to validate broken face'' error. There can be multiple enclosed profiles inside a larger one, provided none intersect each other (for example, a rectangle with two circles inside it).
* Like all Part Design features, Pad creates a solid, thus the sketch must include a closed profile or it will fail with a ''Failed to validate broken face'' error.
* The algorithm used for '''To First''' and '''To Last''' is:
* The algorithm used for '''To First''' and '''To Last''' is:
** Create a line through the centre of gravity of the sketch
** Create a line through the center of gravity of the sketch
** Find all faces of the support cut by this line
** Find all faces of the support cut by this line
** Choose the face where the intersection point is nearest/furthest from the sketch
** Choose the face where the intersection point is nearest/furthest from the sketch
: This means that the face that is found might not always be what you expected. If you run into this problem, use the '''Up to face''' type instead, and pick the face you want.
: This means that the face that is found might not always be what you expected. If you run into this problem, use the '''Up to face''' type instead, and pick the face you want.
: For the very special case of extrusion to a concave surface, where the sketch is larger than this surface, extrusion will fail. This is a unresolved bug.
: For the very special case of extrusion to a concave surface, where the sketch is larger than this surface, extrusion will fail. This is a unresolved bug.

* {{VersionMinus|0.16}} There is no automatic cleanup, e.g. of adjacent planar surfaces into a single surface. You can fix this manually in the [[Image:Workbench_Part.svg|16px]] [[Part Workbench|Part workbench]] with {{Button|[[Image:Part_RefineShape.svg|16px]] [[Part RefineShape|Part RefineShape]]}} (which creates an unlinked, non-parametric solid) or with the {{Button|[[Image:OpenSCAD RefineShapeFeature.svg|16px]] [[OpenSCAD RefineShapeFeature|OpenSCAD RefineShapeFeature]]}} from the [[Image:Workbench_OpenSCAD.svg|16px]] [[OpenSCAD Module|OpenSCAD Workbench]] which creates a parametric feature.


<!--T:38-->
<!--T:38-->

Latest revision as of 02:02, 21 May 2023

PartDesign Pad

Menu location
Part Design → Create an additive feature → Pad
Workbenches
PartDesign
Default shortcut
None
Introduced in version
-
See also
PartDesign Pocket

Description

The Pad tool extrudes a sketch or a face of a solid along a straight path.

Sketch (A) shown on the left; end result after pad operation (B) on the right.

Usage

  1. Select one sketch or face to be padded. introduced in version 0.20: Alternatively you can select several sketches or faces.
  2. Press the Pad button.
  3. Set the Pad parameters, see the Options below.
  4. Click OK.

When selecting a single sketch, it can have multiple enclosed profiles inside a larger one, for example a rectangle with two circles inside it. But the profiles may not intersect each other. introduced in version 0.20

Options

When creating a pad, the Pad parameters dialog will be shown. It offers the following settings:

Type

Type offers five different ways of specifying the length to which the pad will be extruded:

Dimension

Enter a numeric value for the length of the pad. The default direction for extrusion is away (outside of) the support, but it can be changed by ticking the Reversed option. Extrusions occur by default normal to the defining sketch plane. This can be changed by specifying another Direction. With the option Symmetric to plane the pad will extend half of the given length to either side of the plane. Negative dimensions are not possible. Use the Reversed option instead.

To last

The pad will extrude up to the last face of the support in the extrusion direction. If there is no support, an error message will appear.

To first

The pad will extrude up to the first face of the support in the extrusion direction. If there is no support, an error message will appear.

Up to face

The pad will extrude up to a face in the model that can be chosen by clicking on it.

Two dimensions

This allows to enter a second length in which the pad should extend in the opposite direction (into the support). The directions can be switched by ticking the Reversed option.

Length

Defines the length of the pad. Multiple units can be used independently of the user's units preferences (m, cm, mm, nm, ft or ', in or "). This option is only available when Type is either Dimension or Two dimensions.

Offset to face

Offset from face at which the pad will end. This option is only available when Type is either To last, To first or Up to face.

Direction

Direction/edge

You can select the direction of the extrusion:

  • Sketch normal: The sketch or face is extruded along its normal. If you have selected several sketches or faces to be extruded, the normal of the first one will be used. introduced in version 0.20
  • Select reference...: The sketch is extruded along an edge of the 3D model. When this is method selected, you can click on any edge in the 3D model and it becomes the direction vector for the extrusion. introduced in version 0.20
  • Custom direction: The sketch is extruded along a direction that can be specified via vector values.

Show direction

If checked, the pad direction will be shown. In case the pad uses a Custom direction, it can be changed. introduced in version 0.20

Length along sketch normal

If checked, the pad length is measured along the sketch normal, otherwise along the custom direction. introduced in version 0.20

Symmetric to plane

Tick the checkbox to extrude half of the given length to either side of the sketch or plane.

Reversed

Reverses the direction of the pad.

Taper angle

introduced in version 0.20

Tapers the pad in the extrusion direction by the given angle. A positive angle means the outer pad border gets wider. This option is only available if Type is either Dimension or Two dimensions. Note that inner structures receive the opposite taper angle. This is done to facilitate the design of molds and molded parts.

Limitations:

  • Sketches containing B-Splines often cannot be properly tapered. This is a limitation of the OpenCASCADE kernel that FreeCAD uses.
  • For larger angles tapering will fail if the end face of the pad would have fewer edges than the start face/sketch.

2nd length

Defines the length of the pad in the opposite extrusion direction. Multiple units can be used independently of the user's units preferences (m, cm, mm, nm, ft or ', in or "). This option is only available if Type is Two dimensions.

2nd taper angle

introduced in version 0.20

Tapers the pad in the opposite extrusion direction by the given angle. A positive angle means the outer pad border gets wider. This option is only available if Type is Two dimensions. Note that inner structures receive the opposite taper angle. This is done to facilitate the design of molds and molded parts.

Properties

  • DataType: Type of ways how the pad will be extruded, see Options.
  • DataLength: Defines the length of the pad, see Options.
  • DataLength2: Second pad length in case the DataType is TwoLengths, see Options.
  • DataUse Custom Vector: If checked, the pad direction will not be the normal vector of the sketch but the given vector, see Options.
  • DataDirection: Vector of the pad direction if DataUse Custom Vector is used.
  • DataAlong Sketch Normal: If true, the pad length is measured along the sketch normal. Otherwise and if DataUse Custom Vector is used, it is measured along the custom direction. introduced in version 0.20
  • DataUp To Face: A face the pad will extrude up to, see Options.
  • DataOffset: Offset from face in which the pad will end. This is only taken into account if the DataType option UpToLast, UpToFirst or UpToFace is used.
  • DataRefine: True or false. Cleans up residual edges left after the operation. This property is initially set according to the user's settings (found in Preferences → Part design → General → Model settings). It can be manually changed afterwards. This property will be saved with the FreeCAD document.

Limitations

  • Like all Part Design features, Pad creates a solid, thus the sketch must include a closed profile or it will fail with a Failed to validate broken face error.
  • The algorithm used for To First and To Last is:
    • Create a line through the center of gravity of the sketch
    • Find all faces of the support cut by this line
    • Choose the face where the intersection point is nearest/furthest from the sketch
This means that the face that is found might not always be what you expected. If you run into this problem, use the Up to face type instead, and pick the face you want.
For the very special case of extrusion to a concave surface, where the sketch is larger than this surface, extrusion will fail. This is a unresolved bug.