Linking a manually created BOM contents with the models

Dear All --

Scenario: I have inserted a part inside another part and made a boolean operation(combine).

               In drawing, I created some views of the part and created a BOM (Bill of materials).

               Since boolean done, it is a single entity. But I want to capture all the parts used in the model in the BOM

I can create a BOM through program, listing down all the parts in the model, but how will I link the listed items to their respective part ?

A word from anybody will be highly appreciated.

cheers.

SolidworksApi macros