Diagonal Dynamic component formula, help!

I have to configurate a Dynamic component so that it can be manipulated like in the picture (i hide the shapes because of privacy of my client), in summary, its a ruller with wheels and two joints(A and B). I need to be able to set the difference in height and lenght between the two joints, and as a result, the amount of wheels will adapt of that lenght (that component is already configurated succesfully apart). See the image below:

I was provided with this dynamic component made by someone else, and i really cant understand (not only because its in german, anyway i use the traslator) but also because i find it has been made unnecesarelly complicated, (see image below) check it out, would you replicate this formulas or configurate it again from scratch? if so, how? any suggestions?
Thanks!

work a variable slope for given distance, divide this to get number of rollers (the spaces would be 1 greater, reverse of fence post problem), choose to divide remainder in half to even the roller start and finish, but you can decide

rollar track.skp (54.2 KB)

hopefully you know trigonometry, otherwise can use Pythagoras or explanation (steps)

2 Likes

Thank you so much ! Helpful as always PcMoor! :grinning: