You only need 2 values:
- offset from corner
- number of connection points evenly distributed.
Span = width - offset
interval = span/user specified number connection points.
N = user specified number connection point.
now the hard part.
- need specify the max number of connection points
connections.width1 = if (N > 0, offset+ 1* interval, 0) for 1st point
connections.width2 = iif (N>1, offset + 2* interval, 0)
connections.wdith3 = if (N>2, offset + 3* interval,0) f0r 3rd point
so for N =2, offset 5mm (and interval is calculated to 4mm)then, something like
width1 = 5mm + 4mm
width2 = 5mm + 8mm
width3 = 0mm // can adjust formula to move offset to outside if statement so 5mm
etc.