Equally spacing in assemblies

Hi

Say for instance I have a frame with a known outside dimension, but I dont know how many bars I want to put inbetween (think gates). Is there a macro or similar that would enable me to adjust the amount of bars inbetween the outside bars but would dynamicaly keep them equally spaced.

Thanks

Steve

SolidworksParts And Features