I have a cad program at work that I can insert variables into in order to create drawings that will scale with the overall dimensions. So if I tell it that the overall dimension on the sheet (it's a cardboard cad program) is L=45" x W=30.25" and tell it that it has 5 slots cut out of it at evenly spaced intervals on the X axis, it will place those slots when I tell it what the slot size is.
Here's the problem; I can't figure out the correct algebraic function to get it to space the slots evenly. Can anyone help?
I need it to offset the first slot 3" from the edge and the last slot 3" from the opposite edge. The remaining slots need to be evenly spaced. Let's say the slots are A, the spacing is B, and the offset is C.
I feel like I am missing something incredibly simple here to make this work.
Edit: We are working with a 2D drawing.
Edit: 2 Confound it! The title is supposed to say functions
XI Wiki


