I am trying to make a Debruijn Comb.
This basically means that I will have a big rectangular prism boss and I will need to cut from it a series of regularly-spaced smaller rectangular prisms of different depths (along a line). What a Debruijn sequence is isn't really important, but basically I have a pre-generated list of depths that I need to cut each smaller prism to. This list is much longer than the number of cuts I need to make, i.e., I need to be able to stop before using the whole list
Here is a mockup of what I want to make in OpenSCAD:
This needs to go inside a larger, more complicated body, but getting to this would be enough help. I'm not sure how to approach this; I've never done function-driven or list-driven things in SolidWorks?