Macro to apply material in assembly parts

Hello Friends,

I am working on large assembly in there is more than 250 parts, to apply material manually its taking time. Is there any macro to apply material in assembly to all parts or any short cut method.

SolidworksApi/macros