Loop through material data base ?

Has anybody ever been successful to loop through a materialdatabase to see what type of materials are all in it ?

If so I could really use some pointers.

Thanks.SolidworksApi macros