How to get the Material from a Part within an assembly?

Hi,

I'm trying to get the name of the part's material within an assembly. I tried the "GetMaterialUserName (IComponent2)" Method but this method returns Null.

Do anyone have a suggestion how I can solve this problem? 

Thank you in advance!

SolidworksApi macros