macro to replace BOM

I created new BOM and want to replace all the dwg with old BOM with a new one

Is there a macro for this task?

SolidworksApi/macros