Every single combination (Permutation) from parts configuration on an assembly

Hi, I'm trying to get every single combination between the parts inside my assembly using the configuration on each parts (8 for the top, 2 for the side left, 2 for the side right, 2 for the modesty panel and 4 for the Assembly. Total of 256 possible combinations) and then save the BOM on a csv file from the Assembly level not part level and if is possible the Assembly with the actual configuration, I'm trying to build a script on VB on .NET, I have been trying to use recursion but without luck.

If anyone has any Idea how to do this I'll appreciate your help.

Thanks in advance

I included the Assembly Model

SolidworksApi/macros