How to Transport Nested Assemblies Layer by Layer Along with All Inner Contents?

Hi there,

I’m encountering a problem with TransportOut when handling assemblies that contain other assembly.

The setup looks like this:

I want to transport out the stacked assemblies layer by layer, along with all the contents inside each layer.
Something like this:

I tried using GetAssembly with ReturnAsList checked, and then applied SelectProducts to that list, so I could get the steps of the sub-assembly.

However, the next stack was transported only after one layer had been removed.

I also tried adding a while loop, but unfortunately, it resulted in the following error:
(TransportOut does not support a list containing more than one assembly instance.)

Has anyone tried this kind of operation before? Any suggestions or advice would be greatly appreciated.