Macro to mate main 3 part's planes to assy's planes

Hi,


When working in assy, there are many parts that I have tomate themto the Assy's main planes, in my case Front/Front,Top/Top,Right/Right.
Is there a macro that I can do this automatically by justselectingthe Part?

Thanks in advanceSolidworksAssemblies