Link from Solid to Design Table

Hello people,

I ran into the problem where i want to create a Design table with a formula in it to calculate the amount of holes i need in my part. In the formula i would like to put my total length of my part and make it so when i change my total length in the part region, the amount of holes changes depending on the total length. 

Is there a way to link these dimensions together without having to manually change the length of my part in the design table to get the correct amount of holes needed?

Greetings,

Jamie

SolidworksGeneral