[Solved] Scale Mesh To Linetrace?

Hello I have a mesh i want to scale in the X axis to the length of the line-trace for example

this always f##king happens always solve it when i make a post -.-