Hey, I remember this place and all you people… :D Hope everyone’s doing well…. Fun news from me, I’m engaged to a real life female girl :)
I’ve got a bit of a maths problem, which on the surface seems pretty simple to me to be able to resolve, yet I’m stuck on it and can’t figure out why.
Let’s say you’ve got a wooden panel, that’s 500mm wide. On that part, you’re wanting to add a collection of holes across its width, as many as you can fit, spaced exactly 15mm apart, and leaving 75mm from one edge and mirroring from the opposite edge. The holes are to be in the horizontal centre of the panel.
Should be pretty simple, I would’ve thought.
The number of holes I’m guessing is something like (500 – (2 * 75)) ÷ 15. That gives 23.3mm, meaning there’s 23 holes to be put across the width of the part, being the greatest number that would fit without stepping into the 75mm gap-zone around the edge of the panel.
The part I’m stuck on is where I’d need to find the distance from the edge of the panel to the first of the 23 holes.
Best I can come up with is this: (500 ÷ 2) – (500 – ((2 * 75) ÷ 2))
But when I’m measuring this, the distance from the left edge of the panel is not the same as the distance from the right edge of the panel. How should I be correcting the formula so all holes are centred?
The next issue is it needs to be parametric … so if the width is adjusted to say, 700mm, the amount of holes that can fit (as still spaced 15mm apart) will need to be centred, with the ~75mm from both left and right side. But hoping a correct formula to resolve the positioning above would also automatically work parametrically.
