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!


TutorialInfo: Topic: Using Configuration Tables Level: Beginner Time: 30 minutes Author: Gbroques FCVersion: 0.20 Files: https://forum.freecad.org/download/file.php?id=270593 ConfigurationTableExample.FCStd

Configuration Tables

Introduction

With the release of FreeCAD V0.20 two powerful new features have been introduced: Variant Links and Configuration Tables. Configuration tables are a special type of variant link. They allow to vary sets of predefined parameters for a given object.

Prior to this, you could parameterize objects with techniques such as spreadsheets, but multiple varied instances of that object couldn\'t exist at the same time unless you resorted to techniques like copying files or objects which creates maintenance issues. Configuration tables make the maintenance of such variants, and the ability to toggle between them easy.

This tutorial assumes that you have some familiarity with the PartDesign Workbench and the Sketcher Workbench. You should also be familiar with the Tree view and the Property editor.

There is also a video version of this tutorial.

Example

To gain a better idea of configuration tables consider the following example.

Imagine a simple hexagonal nut with a \"major\" diameter of 10mm (M10).

We can reuse the same design, create a link, and then vary certain parameters to create an M12 hexagonal nut.

For our example, we will describe the differences between these two variants with 3 parameters:

  1. diameter of the center hole
  2. width across the corners
  3. and thickness.

The particular parameter values for our variants are described in this table:

Variant Diameter WidthAcrossCorners Thickness

M10 10 18.48 8.4 M12 12 20.78 10.8

Instructions

  1. Create a new spreadsheet with a heading row. Leave the second row empty. That row will hold the current configuration and will automatically be filled later. Add parameters for M10 and M12 in rows 3 and 4:

  2. Use the PartDesign Workbench to create a Body and Sketch for the hex nut. Dimensional constraint will be added in a later step.

  3. Pad the Sketch. Accept the default Length value.

  4. Right-click cell A2 in the spreadsheet and select Configuration table... from the context menu.

  5. The Setup Configuration Table dialog opens.

  6. Enter the following:

    This fills out the second row in the table, adds a new Configuration property to the Body and binds the configuration table to it.

  7. Press the OK button.

  8. If cell A2 shows {{Value|#PENDING}}, you can right-click the spreadsheet in the Tree view and choose Recompute object to show the correct value.

  9. Set an alias for the 3 cells in row 2 underneath Diameter, WidthAcrossCorners, and Thickness. Each alias should match the cell\'s column heading.

  10. Constrain the Sketch with two constraints and bind the expressions {{Value|Spreadsheet.Diameter}} and {{Value|Spreadsheet.WidthAcrossCorners}} to them:

  11. Bind {{Value|Spreadsheet.Thickness}} to the Length of the pad.

  12. Create a PartDesign SubShapeBinder.

  13. In the Tree view drag the Binder out of the Body and drop it on the Document node.

  14. Drop the Body on the Binder to set its Support property to the Body. Dropping is required as this property is Read Only by default.

  15. Set the Bind Copy on Change to {{Value|Enabled}} on the Binder.

  16. Select {{Value|M12}} for the Configuration property of the Binder.

  17. Set Use Binder Style to False on the Binder.

  18. Change the Placement of the Binder so that it\'s away from the Body.

  19. Once finished, you should have something like the following:

Use Std Link instead of PartDesign SubShapeBinder

For the variant link you can also use a Std Link instead of a PartDesign SubShapeBinder:

  1. The preparatory steps 1-10 mentioned above are the same.
  2. Create a Link to the Body.
  3. Set the Link Copy On Change to {{Value|Enabled}} on the Link.
  4. Follow steps 16, 18 and 19 mentioned above.

Key considerations

  • As mentioned, a variant link can be made using a Std Link or a PartDesign SubShapeBinder. Realthunder explains the difference here:{{quote|text=Instead of duplicating the linked object with all its hierarchy, the SubShapeBinder will make a flattened copy of the mutated object. Another difference to Link is that the SubShapeBinder will sync any changes of the original object back to the copy even if the configurations are different, while for Link, once copied, the two objects become independent.}}

  • Although built upon links, variant links are not \"cheap\" like normal links, as they create copies of the original object. Guidance is provided by Realthunder here and here:{{quote|text=[When] using Link for alternative configurations, you'll need to realize that it makes a copy of the original object... it would be better to create a single 'variant' link for each [variant] to avoid unnecessary duplicates. Or better, use SubShapeBinder... And again, create one SubShapeBinder for each configuration.}}


⏵ documentation index > PartDesign > Spreadsheet > Configuration Tables

This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Configuration_Tables.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