Add custom property to all assembly components using macro

Hi everyone,

I'm a beginner macro and I need some help here.

So I have one  leading assembly with two subassemblies and what I need to achive is how to put some
custom properties from assembly to each part drawing (for both subassemblies)

In picture 1 you can see which CP are repeating in each part.

PS: I found similar post with macro here (https://forum.solidworks.com/message/128301#127917) but I'm not able to make it work, because I don't have
enough knowledge

SolidworksDrawings And Detailing