Macro to assign same configuration specific and material

Hello all,

I am new in API and only able to record some simple macros. I want to assign same material and configuration spec. for all parts in part properties using macro. Can anyone  help me to create a macro to assign configuration specific and material as shown below:

Is it possible  to make changes in complete folder with single run of macro?

Thanks in advance

Manjeet Ranjan

SolidworksApi macros