Doubt in Mating

Dear all,
              Iamattaching a macro which isnt mating when i give"swMateAlignALIGNED.... but it shows a mating symbol when ichange to ANTIALIGNED.....i want  to mate the parts such theyare parallel toeach other ..ie the The Front plane of the twoshould be a parallelas well as Right Planes and Top Planes shouldbe at a distance ....The three are substituted by plane 1 ,2 and 3respectively... Pleasesomeone help me in this ....this is eatingmy head....SolidworksApi macros