Using Relative Object Parameters

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
freecader2
Posts: 99
Joined: Thu Oct 22, 2020 11:19 pm

Using Relative Object Parameters

Post by freecader2 »

Hi,

Is there a way for expressions to reference parameters of relative objects, rather than naming absolutely the object to read the parameter's value from?

Given a "template" Part containing Bodies containing Sketches, and that template is then copied or linked to create many instances of it, all needing different overall dimensions. Can Sketch constraints in those instances refer to parameters of their own Part, rather than all referring back to one single "template".

For example, consider a desk with many drawers all of different sizes but same style/design. Every drawer has pieces: a handle, face, sides, bottom, etc etc, and the piece dimensions depend on the overall dimensions of that particular drawer. Is it possible in FC to define one of these "drawer" templates ("Part") and the pieces ("Body") that make it, and then have many drawer instances of varying dimensions, and have all of their individual pieces calculated based on the parameters of that particular drawer instance?

Thanks!
Bance
Veteran
Posts: 4266
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Using Relative Object Parameters

Post by Bance »

Sounds like you are looking for configuration tables.

viewtopic.php?f=17&t=42183
freecader2
Posts: 99
Joined: Thu Oct 22, 2020 11:19 pm

Re: Using Relative Object Parameters

Post by freecader2 »

That's good info. My current use case maybe doesn't need the full capability of an enumeration to select a configuration (since every instance will be different there'd be as many configurations as objects). However learning about that "CopyOnChange" option looks very useful for creating many instances all with different values. Thank you!
Post Reply