Dynamic Component Array with Secondary Array with min max

I am trying to make a dynamic component array where the main array has a typical width that is changeable, and then a secondary array.

Lets say for instance I stretch the array to 55’ but the typical width is 12’ so it does four 12’ panels and then a 7’ panel. This works great.

Lets say for instance I stretch the array to 51’ but the typical width is 12’ so it does four 12’ panels and then a 3’ panel. This does not work great. We can’t produce a piece that skinny as it would snap. Is there a way for in the secondary array for it two become two pieces? So I would have 3 12’ panels and then the last panel becomes two panels splitting the difference using two 7.5’ panels.

I would like that function to be built in with a minimum for the last panel so if it knows the difference is less than X remove one of the main array and make two smaller panels.

Attached is my current DC for reference.

2025.09.03 WP Array.skp (9.5 MB)

2025.09.03 WP Array.skp (9.8 MB)

Wow, thank you so much. I will need to pick this apart and learn from it!

Could I ask one more question?

How could I go about editing this dynamic array so that when I scale upwards ant it hits a set limit it makes another array above it, while still keeping all the other stuff it already does?

make the panels a component “row” and copy that

2025.09.03 WP Array.skp (152.7 KB)

(file size corrected after purge)

This works great for the most part but I was scaling it to meet a certain location on my model and it started going crazy. Do you know what causes that so I can fix it?

With reuse, copy of the DC, and deletion it is possible for the DC to be not completely unique. There are unused definitions remaining and could cause “cross talk”. However, to be certain I need the corrupted file not a picture. Please do send as can find if this the case or a mishap in use.

:man_facepalming: I forgot to save the issue and can’t recreate it for some reason now.

There is an axis issue with using this DC with the “insert_DC” tool, axis should be in at left front and in positive directions.

Another issue is with the native report writer and DC internal copies, so have to use OpenCutList for quantities

If you need to use report writer, you have to build each row (physical copy), rather than internal copy

2025.10.02 WP Array.skp (145.3 KB)

There are naming, tags and instance issues to consider for “insert_DC” tool dialog and reports

So probably need to make some choices

My preference is OCL, with DC attribute Name for objects and instance names for containers and collections (arrays). Tags as locations.