Add BOM with the help of macro

Hello experts,

Is it possible to add BOM in drawing sheet with the help of Macro file.

If any one have please help me.

thanks,

SolidworksApi macros