Help required - Mating

Ok,

I have created a subroutine that will insert a part into anassembly and mate the part to the fixed part in the assembly (threesets of coincident mates to planes). I have created anothersubroutine that calls this procedure in a loop so that I can buildmy assembly.
The problem I have is that after inserting the first part, thesecond part I insert I get the an overdefined problem between thesecond part and the fixed part. I to see what's wrong manually gointo the model suppress the mate causing the problem and thenun-suppress the mate and the parts mate without a problem. Why am Igetting this error when manually this is not an issue? Plus whenconstraining a part with planes you need to have three orthogonalplane mates in order to fullly constrain the part.

Thanks,
EdSolidworksApi macros