DC Angled Cut Boundary Box Problem

I am working on a DC with a top rail with adjustable incline that requires an angled cut. I have that sorted. The problem I have is the bounding box of the angled cut piece impacts on the DC bounding box x-axis size, this then makes the scale function / LenX return incorrect values which also change with the top rail incline setting. The dashed line on the image is the bounding box of the angled cut piece which is pushing out the bounding box of the component from what should be flush with the pale blue box.

I got around this on a solid rail with two pieces with axes set to match the component. That isn’t going to work with a complex profile rail… Any suggestions to stop the angled cut bounding box over hanging whilst still being able to change the incline?

I guess I would change the axes of that component to suit and then change the math to move that component along the angle. (PosX and PosZ). Presumably it’s 45° so the math should be straightforward.

Thanks for the prompt comment Dave! The component shape varies with the incline, so not quite so straightforward as a fixed 45°.

Ah … Maybe you could set the component origin for the top level component at the corner of the blue base so things are references to that corner.