Edit Mate

I was wondering if anyone had any sample code to get mestarted with this. I have a mate created. I want to write some codethat will select a mate, this I already have, edit it, clear theselection, then give it two new mating entities.

Any help would be greatly appreciated.

ThanksSolidworksApi macros