Controling B.O.M. Using Macro

Does anyone have any good ideas/examples on how to control bill of material properties using a macro?

SolidworksApi macros