How can I automate an assembly of several configurations of a single part?

Hi all,

I'm guessing this is straightforward but I'm not sure how to do it.  I'm making a model of the spine and have constructed the individual bones in a configuration.  Now I want to assemble them for export to Simulink and I need to generate the geometry for this.

I have three mates between each bone and the one above it.

Bottom part plane A parallel to top part plane B.

Bottom part edge A [table] degrees from top part edge B.

Bottom part point A [table] mm from top part point B.

This establishes the geometry.  I then want to delete the mates so that the constraints don't carry over when exported.

How can I automatically carry out this process?  I have to do this 18 times per spine and I don't know how many spines I'll be doing (but more than 1.)

Thanks for your help.

SolidworksApi macros