Macro to constrain my plans in an ASM

Hi all 

 

I want to know if it is possible to edit a macro that would allow me to automatically constrain the planes of my asm with the renamed planes (ALWAYS in the same way Ex: NOM_Face,NOM_Dessus) and always in the same order of my piece. I obviously tried with the macro recorder but when I launch the operation on the same part without having recorded and having gone back to the previous version, nothing happens... So I want to know if I'm not trying something impossible from the beginning and why it wouldn't be possible, especially since the plans I would like to make match, each of them will always have the same name.

I forgot....  

Here is the VBA code that the macro recorder shows me after the operation: 
 


contraintes.zip

Still no answer... I hope at least not to look for nothing, if it is really possible to constrain two planes named in the same way by a macro!