Dynamic Assembly Patterns?

Hi, quick question about using patterns in an assembly:

Is it possible to dynamically pattern parts?

This is what I'm talking about:

Is it possible to pattern the vertical trellis pieces so

that they change dimension to fit between the upper and

lower 2x4s??

Any insight would be greatly appreciated.

Thanks!

SolidworksAssemblies