PartDesign MultiTransform: Difference between revisions

From FreeCAD Documentation
(added simple example)
(Tried to improve the added "Example" paragraph.)
Line 121: Line 121:
See [[PartDesign_PolarPattern#Limitations|PartDesign PolarPattern]].
See [[PartDesign_PolarPattern#Limitations|PartDesign PolarPattern]].


== Example ==
== Example ==
You can use this function to create a fully parametric part that is symmetrical about two axis from a sketch. This could be a 150x100x10mm large mounting plate for a stepper motor with symmetric holes and a pocket.
* create a "quarter" part from a sketch that covers the first quadrant of the part (i.e. upper left quadrant in Sketcher).
** note that your constraints must only cover a quarter of the part. You can use use construction geometry with the full part dimensions are constrain against those or just use halved values for X and Y sizes, e.g. instead of a full dimension of 150mm enter "150/2mm" or "75mm"
** Make sure the sketch is closed by adding lines along the vertical and horizontal axes to the origin.
* close the sketcher and extrude the part with [[PartDesign_Pad|PartDesign Pad]].
* Select '''MultiTransform'''
*: a task dialog will open. As default feature the last tip from the tree is aleady listed. Since we want to mirror the complete part we do not need to any any feature.
* click with the right mouse button into the "Transformations" field and select ''add mirrored transform''
* Select under "Plane" the correct axis: ''Vertical sketch axis''
*: now you should see you part mirrored about one axis
* click again with the right mouse button into the "Transformations" field and again select ''add mirrored transform''
* Now select under "Plane" the other axis: ''Horizontal sketch axis''
*: note: if you forget to select the other axis the part will be mirrored twice along the same axis. Visually nothing will change but you have twice the goemetry.


You can use this tool to create a fully parametric part that is symmetrical about two axes from a sketch.
Now you part is mirrored about the two sketch axes. You can edit the transforms any time by double clicking the "MultiTransform" icon in the tree.


This could be a 150x100x10mm large mounting plate for a motor with symmetric holes.
To verify that the part is fully parametric open the initial sketch with the quarter part and change one dimension, say a hole position. After closing the sketch all 4 holed will have changed accordingly. This works with all other dimensions as well. Compareed with a sketch modelling the full part with a signle extrusion but no mirroring, the skeck would be a lot more complex with a lot of redundant information. All later changes would be more complicated. This sketch is small and easy to change.

</translate>
[[Image:PartDesign_MultiTransform_Example2.png|400px]]
<translate>

# Create a [[Image:PartDesign_Body.svg|16px]] [[PartDesign_Body|Body]] and add a [[Image:PartDesign_NewSketch.svg|16px]] [[PartDesign_NewSketch|sketch]] on one of its base planes.
# In the sketch create geometry for one quadrant of the part (i.e. the upper right quadrant).
#* Note that the constraints must also only cover a quarter of the part, e.g. instead of the full dimension of {{Value|150mm}} enter {{Value|150/2mm}} or {{Value|75mm}}.
#* Make sure the sketch is closed by adding lines along the vertical and horizontal axes.
# Extrude the part with [[Image:PartDesign_Pad.svg|16px]] [[PartDesign_Pad|PartDesign Pad]].
# Select [[Image:PartDesign_MultiTransform.svg|16px]] '''PartDesign MultiTransform'''
# The task dialog opens.
# The last feature of the Body is already selected. Since we want to mirror that feature we can ignore the {{Button|Add feature}} or {{Button|Remove feature}} buttons.
# Right-click in the {{MenuCommand|Transformations}} field and select {{MenuCommand|Add mirrored transform}} from the context menu.
# For the {{MenuCommand|Plane}} select {{MenuCommand|Vertical sketch axis}}.
# If the {{MenuCommand|Update view}} checkbox is checked, you should now see the part mirrored about one axis.
# Again select {{MenuCommand|Add mirrored transform}} from the context menu of the {{MenuCommand|Transformations}} field.
# Now for the {{MenuCommand|Plane}} select {{MenuCommand|Horizontal sketch axis}}.
# To remove the edges along the axes of symmetry in the final result, in the [[Property_editor|Property editor]] set the {{PropertyData|Refine}} property of the new feature to {{Value|true}}.

To verify that the part is fully parametric open the initial sketch with the quarter part and change one dimension, say a hole position. After closing the sketch the three other holes will have changed accordingly. This works with all other dimensions as well. A sketch modelling the full part with a single extrusion and no mirroring would be a lot more complex and all later changes would be more complicated.





Revision as of 10:47, 28 November 2022

PartDesign MultiTransform

Menu location
Part Design → Apply a pattern → Create MultiTransform
Workbenches
PartDesign
Default shortcut
None
Introduced in version
-
See also
PartDesign Mirrored, PartDesign LinearPattern, PartDesign PolarPattern, PartDesign Scaled

Description

The PartDesign MultiTransform tool creates a pattern of one or more features. The pattern can include multiple transformations where each subsequent transformation is applied to the result of the previous transformation.

The available transformations are: Mirrored, LinearPattern, PolarPattern and Scaled. The first three are also available as separate tools.

A pattern of holes created from a single Hole feature by applying a LinearPattern with 2 occurences, followed by a PolarPattern with 8 occurrences.

Usage

Create

  1. Optionally activate the correct Body.
  2. Optionally select one or more features in the Tree view or the 3D view.
  3. There are several ways to invoke the tool:
    • Press the Create MultiTransform button.
    • Select the Part Design → Apply a pattern → Create MultiTransform option from the menu.
  4. If there is no active Body, and there are two or more Bodies in the document, the Active Body Required dialog will open and prompt you to activate one. If there is a single Body it will be activated automatically.
  5. If no features were selected the Select feature task panel opens: select one or more (hold down the Ctrl key) from the list and press the OK button.
  6. The MultiTransform parameters task panel opens. See Options for more information.
  7. Press the OK button at the top to finish.

Edit

  1. Do one of the following:
    • Double-click the MultiTransform object in the Tree view.
    • Right-click the MultiTransform object in the Tree view and select Edit MultiTransform from the context menu.
  2. The MultiTransform parameters task panel opens. See Options for more information.
  3. Press the OK button at the top to finish.

Combine existing transformations

It is possible to create a MultiTransform object from existing Mirrored, LinearPattern and PolarPattern transformations.

  1. Check the DataOriginals property of the existing transformations to make sure they have been applied to the same features.
  2. Select those features in the Tree view.
  3. There are several ways to invoke the tool:
    • Press the Create MultiTransform button.
    • Select the Part Design → Apply a pattern → Create MultiTransform option from the menu.
  4. The MultiTransform parameters task panel opens.
  5. Press the OK button at the top.
  6. Edit the DataTranformations property of the created MultiTransform object:
    1. Click in the field.
    2. Press the ... button that appears.
    3. The Link dialog opens.
    4. Hold down the Ctrl key and select the existing transformations.
    5. Press the OK button.
  7. Optionally edit the MultiTransform object, see above.

Options

  • To add features:
    1. Press the Add feature button.
    2. Select a feature in the Tree view or the 3D view.
    3. Repeat to add more features.
  • To remove features:
    1. Press the Remove feature button.
    2. Do one of the following:
      • Select a feature in the Tree view or the 3D view.
      • Select a feature in the list at the top and press the Del key.
      • Right-click a feature in the list at the top and select Remove from the context menu.
    3. Repeat to remove more features.
  • If there are several features in the pattern, their order can be important. See PartDesign PolarPattern.
  • To add transformations:
    1. If there are existing transformations: select the transformation after which the new transformation should be added.
    2. Right-click the Transformations list.
    3. Select one the following options from the context menu:
    4. The selected transformation is added to the list and the settings for the transformation are displayed below the list.
    5. Adjust the settings to suit.
    6. Press the OK bar at the bottom.
    7. Repeat to add more transformations.
  • To edit a transformation:
    1. Right-click the transformation in the Transformations list.
    2. Select Edit from the context menu.
    3. Adjust the settings to suit.
    4. Press the OK bar at the bottom.
  • To change the order of the transformations:
    1. Right-click a transformation in the Transformations list.
    2. Select Move up or Move down from the context menu.
  • If the Update view checkbox is checked the view will update in real time.

Limitations

See PartDesign PolarPattern.

Example

You can use this tool to create a fully parametric part that is symmetrical about two axes from a sketch.

This could be a 150x100x10mm large mounting plate for a motor with symmetric holes.

  1. Create a Body and add a sketch on one of its base planes.
  2. In the sketch create geometry for one quadrant of the part (i.e. the upper right quadrant).
    • Note that the constraints must also only cover a quarter of the part, e.g. instead of the full dimension of 150mm enter 150/2mm or 75mm.
    • Make sure the sketch is closed by adding lines along the vertical and horizontal axes.
  3. Extrude the part with PartDesign Pad.
  4. Select PartDesign MultiTransform
  5. The task dialog opens.
  6. The last feature of the Body is already selected. Since we want to mirror that feature we can ignore the Add feature or Remove feature buttons.
  7. Right-click in the Transformations field and select Add mirrored transform from the context menu.
  8. For the Plane select Vertical sketch axis.
  9. If the Update view checkbox is checked, you should now see the part mirrored about one axis.
  10. Again select Add mirrored transform from the context menu of the Transformations field.
  11. Now for the Plane select Horizontal sketch axis.
  12. To remove the edges along the axes of symmetry in the final result, in the Property editor set the DataRefine property of the new feature to true.

To verify that the part is fully parametric open the initial sketch with the quarter part and change one dimension, say a hole position. After closing the sketch the three other holes will have changed accordingly. This works with all other dimensions as well. A sketch modelling the full part with a single extrusion and no mirroring would be a lot more complex and all later changes would be more complicated.