Dynamic linked object

Introduction
Link (internally App::Link) is an important new feature introduced in FreeCAD 0.19 for creating assemblies.

This article aims to layout one pattern for complex assemblies involving dynamic linked objects which aims to reduce duplication of assembly related logic such as orientation, positioning, or number of instances.

Example
To illustrate the dynamic linked object concept, consider a table with four legs.

Each leg has two different variants:


 * 1) Round
 * 2) and Square

The variants can be controlled by a parameter in a spreadsheet.

For our table model, we'll create five separate documents:


 * 1)   - containing the top of the table.
 * 2)   - containing a round table leg.
 * 3)   - containing a square table leg.
 * 4)   - containing the assembly of the table top and legs.
 * 5)   - containing a spreadsheet to drive the model.

Our simple table model will define the following parameters in :


 * 1)   - Dimension of the square table top.
 * 2)   - Thickness of the table top.
 * 3)   - Size of each table leg. For Square leg, this is the dimension. For Round leg, this is the diameter.
 * 4)   - Height of each table leg.
 * 5)   - Controls the style of table leg. Possible values include " " and " ".

is where the dynamic linked object concept is illustrated.

The goal is to not duplicate the following assembly logic for each table leg variant:
 * 1) Each table leg must appear four times underneath each corner of the table top.

💡 The full example and all files are available to download as a git repository from GitHub:

https://github.com/gbroques/freecad-dynamic-linked-object

GIF Recording



FreeCAD Forum Discussion

 * How to Make Dynamic Linked Object Based on Expression