Macro for linking views to BOM

hi,

     I tried to search but failed to succeed. Is someone aware of macro that can help me assign all my views (section, details) on multiple sheet to a BOM.

SolidworksApi macros