Link pattern instances to length of part

I have what I assume is a complex question/task at hand. I have a part x" long and i want to link the pattern to the length so when the part gets "X" longer the pattern will fill in with a set, setback from each end. How/what do I need to do this?

SolidworksParts And Features