check whether bom exists

Hello all,

is there any way to check whether bom exists in a drawing or not? I can not find any snippets...

Any help would be appreciated.

Mario

SolidworksApi macros