Hello, I use expressions a lot in my models, which is why I am asking if it is possible to read the actual height of washers and nuts to use these values in expressions. Consider the following example assembly:
- Assem.png (28.72 KiB) Viewed 2602 times
to make it I used a measuring tool to obtain the values of the washer and nut heights so that I could set up the following expressions:
- Nut_placement.png (62.67 KiB) Viewed 2602 times
- LockNut_placement.png (63.42 KiB) Viewed 2602 times
the assembly is parametric with respect to Pad.Length and Pad001.Length but not with respect to changing the bolt size, e.g. if you change the size from M6 to M4 you obviously get this result:
- M6_to_M4.png (28.75 KiB) Viewed 2602 times
I then had to use the measuring tool again to obtain the new values for the washer and nut heights to be set manually in the expressions for Z.
If it were possible to use expressions such as:
Z= Pad.Length + Pad001.Length + Washer.height
Z= Pad.Length + Pad001.Length + Washer.height + Nut.height
if the parameters Washer.height and Nut.height were automatically updated (it is sufficient that they are read-only parameters), you would have two convenient advantages:
1) it would never be necessary to use a measuring tool to obtain actual values for washer and nut heights;
2) by changing the bolt size, the assembly would automatically adapt.
Thanks in advance for your answers
Code: Select all
OS: Linux Mint 20.2 (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.21.30492 (Git) AppImage
Build type: Release
Branch: master
Hash: b4578fb3eae842eb510a1bc055d07d369a67ce94
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Italian/Italy (it_IT)
Installed mods:
* kicadStepUpMod 10.10.5
* DynamicData 2.32.0
* Manipulator
* Assembly4 0.12.4
* fasteners 0.4.15