I know you can record a macro, but i can't have it repeat for another parts.
I don't know a thing about macros, but did you know that you can have components inserted with their three main planes automatically aligned with those of the assembly? See the second part of #10 atFrequently Asked Forum Questions.
And if you already knew this I apologize.
Are you looking to mate planes of two selected parts OR part planes with assembly planes
i want to mate to planes in an assembly. i bring in a part in an assembly and run a macro that mates parts to the assembly planes.
It isn't what you are asking for, but might be the end result you want.... if you drag the part out of Windows explorer and drop it on the assembly origin (you will need it visible), the part will be fixed in place with origins and planes coincident. Aaand, you can do this with multiple parts at once.
Search for example macro: Align Assembly Component to Assembly Origin and Planes Example (VB)
Retrieving data ...