openBrain wrote: ↑Wed Sep 15, 2021 8:13 am
ifohancroft wrote: ↑Tue Sep 14, 2021 10:03 pm
Can you access custom properties of a parent object?
Like if I have a Sketch, inside of a Body inside of a Part, can I add a custom property to the Part then access that as a dimension constraint in the Sketch? How?
Just set in an expression
Attaching the file for reference, but it doesn't seem to work.
I have a Part called Keyboard, inside it I have a Body called Plate and inside it I have a Sketch that I haven't renamed.
I added a length property to the Keyboard part and called it switch. Trying to access it either as =Keyboard.switch or =<<Keyboard>>.switch I get:
Result: cyclic reference to Unnamed#Part
OS: Manjaro Linux (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.20.25288 (Git) AppImage
Build type: Release
Branch: master
Hash: bbb557aab6129efd9486d6df19f06c2976fdb7e5
Python version: 3.9.6
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)