How to get BOMFeature from assembly/part?

I've managed to do this in a drawing, but how can you retrieve the BOM from an assembly/part?

When I traverse the assembly or part...I get the Tables folder, but how do I manage to go through what's in it to actually get the bomfeature?

Thanks

SolidworksApi macros