how to make a bom from assambly to a tree view in VB

Hi I will make a treeview in vb from a spicefied assambly(bom to Treeviwe)
how do I do that
A code examble will be nice
thanksSolidworksApi macros