FreeCAD Logo FreeCAD 1.0
  • English Afrikaans Arabic Belarusian Catalan Czech German Greek Spanish Spanish Basque Finnish Filipino French Galician Croatian Hungarian Indonesian Italian Japanese Kabyle Korean Lithuanian Dutch Norwegian Bokmal Polish Portuguese Portuguese Romanian Russian Slovak Slovenian Serbian Swedish Turkish Ukrainian Valencian Vietnamese Chinese Chinese
  • Features
  • Download
  • Blog
  • Documentation
    Documentation index Getting started Users documentation The FreeCAD manual Workbenches documentation Python coding documentation C++ coding documentation Tutorials Frequently asked questions Privacy policy About FreeCAD
  • Contribute
    How to help Sponsor Report a bug Make a pull request Jobs and funding Contribution guidelines Developers handbook Translations
  • Community
    Code of conduct Forum The FPA GitHub GitLab Codeberg Mastodon Matrix IRC IRC via Webchat Gitter Discord Reddit Twitter Facebook LinkedIn Calendar
  • ♥ Donate

Donate

$
SEPA Information
Please set up your SEPA bank transfer to:
Beneficiary: The FreeCAD project association
IBAN: BE04 0019 2896 4531
BIC/SWIFT: GEBABEBBXXX
Bank agency: BNP Paribas Fortis
Address: Rue de la Station 64, 1360 Perwez, Belgium

While Stripe doesn't support monthly donations, you can still become a sponsor! Simply make a one-time donation equivalent to 12 months of support, and you'll gain access to the corresponding sponsoring tier. It's an easy and flexible way to contribute.

If you are not sure or not able to commit to a regular donation, but still want to help the project, you can do a one-time donation, of any amount.

Choose freely the amount you wish to donate one time only.

You can support FreeCAD by sponsoring it as an individual or organization through various platforms. Sponsorship provides a steady income for developers, allowing the FPA to plan ahead and enabling greater investment in FreeCAD. To encourage sponsorship, we offer different tiers, and unless you choose to remain anonymous, your name or company logo will be featured on our website accordingly.

from 1 USD / 1 EUR per month. You will not have your name displayed here, but you will have helped the project a lot anyway. Together, normal sponsors maintain the project on its feet as much as the bigger sponsors.

from 25 USD / 25 EUR per month. Your name or company name is displayed on this page.

from 100 USD / 100 EUR per month. Your name or company name is displayed on this page, with a link to your website, and a one-line description text.

from 200 USD / 200 EUR per month. Your name or company name and logo displayed on this page, with a link to your website and a custom description text. Companies that have helped FreeCAD early on also appear under Gold sponsors.

Instead of donating each month, you might find it more comfortable to make a one-time donation that, when divided by twelve, would give you right to enter a sponsoring tier. Don't hesitate to do so!

Choose freely the amount you wish to donate each month.

Please inform your forum name or twitter handle as a notein your transfer, or reach to us, so we can give you proper credits!


GuiCommand: Name: PartDesign ShapeBinder MenuLocation: Part Design , Create a shape binder Workbenches: PartDesign_Workbench Version: 0.17 SeeAlso: PartDesign_SubShapeBinder, PartDesign_Clone

PartDesign ShapeBinder

Description

The PartDesign ShapeBinder tool creates a shape binder referencing geometry from a single parent object. A ShapeBinder is used inside a PartDesign Body to reference geometry outside the Body. Using external geometry directly in a Body is not allowed and will lead to out of scope errors.

A ShapeBinder will track the relative placement of the referenced geometry, which is useful in the context of creating assemblies, if its Trace Support property is set to {{True}}. See the Example below to understand how this works.

The referenced geometry can either be a single object (for example a Part Box, a PartDesign Body, or a sketch or Feature inside a Body), or one or more subelements (faces, edges or vertices) belonging to the same parent object. Which geometry should be selected depends on the intended purpose of the ShapeBinder. For a Boolean operation you would need to select a solid. For a Pad operation a face or a sketch can be used. And for the external geometry in a sketch, or to attach a sketch, any combination of subelements may be appropriate. The referenced geometry can also belong to the Body the ShapeBinder is nested in.

*From two selected faces a ShapeBinder is created in a still empty Body. Geometry from the Shapebinder can then be used as external geometry in a sketch in that Body.*

Usage

  1. Activate the Body the ShapeBinder should be nested in.
  2. Optionally select a single object, or one or more subelements belonging to the same parent object. Subelements can only be selected in the 3D view.
  3. Select the Part Design → Create a shape binder option from the menu.
  4. The Datum shape parameters task panel opens.
  5. Optionally select an object, this is not required if you want the select subelements:
    1. Press the Object button.
    2. Select an object in the Tree view or the 3D view.
    3. Any previously selected subelements will be removed.
    4. If a Body is selected here, selecting subelements will be impossible as these belong to a different object, namely the Tip Feature of the Body.
  6. Optionally select subelements:
    1. Press the Add geometry button.
    2. Select a subelement in the 3D view.
    3. The Add geometry button has to be pressed for every subelement you want to add.
    4. Only subelements belonging to the same parent object can be selected. If required use the Object button to select a different parent object.
  7. Optionally remove subelements:
    1. Press the Remove geometry button.
    2. Select a subelement in the 3D view.
    3. The Remove geometry button has to be pressed for every subelement you want to remove.
  8. Press the OK button.

Options

To edit a ShapeBinder double-click it in the Tree view, or right-click it and select Edit shape binder from the Tree view context menu.

Notes

  • A ShapeBinder can be dragged out of the Body it is nested in, and dropped onto the document node in the Tree view. Such an unnested ShapeBinder can be used as the Base Feature for a new Body.
  • A ShapeBinder created from a sketch can have an opposite \"tool direction\". For example a Pad created from the sketch may extend in the +Y direction, while a Pad, with the same properties, created from the ShapeBinder extends in the -Y direction. Toggling the Reversed property (or checkbox) will solve this.

PartDesign SubShapeBinder vs. PartDesign ShapeBinder

The PartDesign SubShapeBinder tool and the PartDesign ShapeBinder tool are quite similar. Their names are somewhat confusing as both can reference whole objects and subelements.

The main differences are:

  • Editing a PartDesign ShapeBinder is easier. Double-clicking the object in the Tree view will open a task panel.
  • A PartDesign ShapeBinder can either reference a single whole object, or subelements belong to a single parent object. A PartDesign SubShapeBinder does not have these restrictions.
  • Only PartDesign SubShapeBinders can reference geometry from an external file.
  • A PartDesign SubShapeBinder always tracks the relative placement of the referenced geometry. For a PartDesign ShapeBinder this behavior is optional through its Trace Support property.
  • Only PartDesign SubShapeBinders support 2D offsetting.

While keeping in mind that each of these tools has its pros and cons and the choice may depend on the use case, one can conclude that using a SubShapeBinder is currently recommended for most applications due to its versatility and range of options. More about these tools can be found in MangoJelly\'s video [https://www.youtube.com/watch?v=ylAMGQ8HV0w| FreeCAD For Beginners 34: Part Design Shape Binder vs Sub Shape Binder].

Properties

  • Support|LinkSubListGlobal: support for the geometry.

  • Trace Support|Bool: Default is {{False}}. When {{True}}, the shape binder does observe relative placements of the parts and bodies (by manipulating values of its hidden Placement property).

Example

The example uses the ShapeBinder Feature to make a hole (with or without threads) through more than one body. Normally the Hole function of the Part Design workbench is limited to a single body. The example uses two cubes facing each other but misaligned in an arbitrary way. The holes are created with sketches containing a circle for every hole (the diameter is ignored by the hole function). When you copy the sketch to the other cube it will be at the same position in the local cube coordinate system. In the image this is shown by the white circle on the back cube. This is not what we want, because the hole at that position would not be aligned to the hole in the front cube.


Example setup for showing how to make holes through different bodies. The white circle shows that copying sketches is not enough

Here is how you use the ShapeBinder Feature to achieve it:

  1. Prepare a scene as per the above image. If you use the cubes from the Part workbench, remember that you must put them into a Body container. Each one in a single body container. Otherwise the PartDesign functions would not work. If you build them from sketches the system should create body containers by default.

  2. In the Property editor change the placement of the second cube so that it touches the first cube with a side displacement.

  3. Select the PartDesign workbench

  4. Create a sketch on the front face of the first cube and place a circle anywhere and close the sketch

  5. Select the sketch in the tree and press the PartDesign Hole button. Before make sure the first body is the active body (double-click).

  6. Select a hole of appropriate size. The image above had also counterbore selected. Close the Hole function.

    : Now the image should look as above. When you hide the first cube (select and press space) you can see that the hole does not reach the second cube. It will not, even when you select Through All, or when you enter a really large distance in the Hole task panel. The hole is always limited to a single body. : Here is where our ShapeBinder comes in.

  7. First select the back cube. This is the target where the ShapeBinder will be added. It must be activated before, so be sure it has been double-clicked.

  8. In the tree select the sketch we used for the hole. It\'s important to not activate the first body.

  9. Select the shapeBinder function.

    : A task panel should open. In the line Object the name of our sketch should be visible. If you had selected the function without selecting the sketch, you could press Object and then select the sketch from the list. It\'s recommended to select it first in order to get the right one, especially if you have many sketches with automatically generated names such as Sketch001 and following. Add Geometry is not useful for us, because we want to select the whole sketch. Add Geometry is used if only parts should be selected.

  10. Press OK to close the task panel and check that a new item has been added to the tree of the second cube.

    : When you toggle the visibility of the ShapeBinder it is shown yellow in the 3D view. However it\'s on the wrong position, just as the white circle in the image above. That is because of the default setting for the Trace parameter.

  11. In the PropertyView of the ShapeBinder in the Data tab set the Trace Support parameter to true. The default was false.

    : With Trace Support true, the ShapeBinder is not affected by local transformations of the target body, e.g. our translations. The shape remains exactly where the original front object shape has been. Try moving the front object around and you can see that the ShapeBinder always follows to the new position.

  12. Select the ShapeBinder in the tree and press the PartDesign Hole button. If you enter the same values as for the initial hole you will notice that no hole is created in the second cube. This is because a ShapeBinder in some cases has an opposite \"tool direction\" compared to the referenced sketch. To solve this check the Reverse checkbox. Press OK to finish.

  13. You now have linked holes in two different bodies. If you change the position of the circle in the sketch, both holes will adapt. You can even add new circles in the sketch to create additional linked holes.

{{PartDesignTools navi}}


⏵ documentation index > PartDesign > PartDesign ShapeBinder

This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/PartDesign_ShapeBinder.md

Get in touch!
Forum GitHub Mastodon Matrix IRC Gitter.im Discord Reddit Twitter Facebook LinkedIn

© The FreeCAD Team. Homepage image credits (top to bottom): ppemawm, r-frank, epileftric, regis, rider_mortagnais, bejant.

This project is supported by: , KiCad Services Corp. and other sponsors

GitHubImprove this page on GitHub