Currently, the length of the screw (clamping length) is calculated from a certain distance between certain outer areas in a certain place.

This works for such joints, where the connection surfaces of the joined objects are parallel. If the objects in the model do not have parallel connected surfaces, because such objects would have to be modeled already deformed - which is not meaningful (deformation is set on the assembly by tightening the screw and bending certain objects), screws are often generated with different lengths within one joint, which is nonsense.
Example:


Z-View on the connection - wedge gap between plate and diagonal profile approx. 2 ° (no bent on plate possible):


The right solution is to add the thicknesses of the materials to be joined and then generate the required bolt length - how it works in the real world. Although the part of the connecting material "immersed" in the connected profiles will be displayed, the length of the screw will be correct.
