Macro - get Custom Properties from part that appears in assembly

Hi all,

How can i get Custom Properties from part that appears in assembly and store the value in a variable?

SolidworksApi/macros