By the way, you are generating ten rotation angles but four of them are duplicates. Changing the value of Series ‘C’ (Count) from 10 to 6 has no apparent effect on the end result.
The first file has two layers, I see only one layer in the second file? So this is probably wrong too?
Need To Extrude and Cap_2021May11a.gh (19.6 KB)
P.S. It’s not “magic”!