each occurence should be an item in the assembly (either it be a part or sub assy). As occurance, you look for "IncludeInBom".
Remember, things get tricky if you want to look into any sub assys. Those are subOccurances. I suggest finding Jason Newell's "Solid Edge Spy". It does wonders for looking at the structure of documents.
Thank you! I havnt tried it yet, but IncludeInBom def looks like what im trying to do.
I am already looping through occurances and subocurances so that is not a problem. And i am already using the spy! Thanks a bunch!