PDMWorks and BOM

Hi,
I am writing an application that will create a kind of BOM in anexternal text file.
The BOM is extracted from PDMWorks without having solidworkspresent or active.
When I get the list of reference links of an assembly, it showsalso parts that are suppressed in this assembly.
is there a way to know if this file should not be listed in myoutput?
I have noticed that the report of pdmworks (using the real pdmworksnot API) also shows this component although it is suppressed.
Eyal
SolidworksApi macros