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!
Using Relative Object Parameters
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
-
- Posts: 99
- Joined: Thu Oct 22, 2020 11:19 pm
-
- Posts: 99
- Joined: Thu Oct 22, 2020 11:19 pm
Re: Using Relative Object Parameters
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!