Imported parts

Hello,

I would like to find out which parts in a given assembly are imported from other CAD format. This is a quality check which will help find out errors in such imported geometry parts.

Does anyone knows API to find such parts within an assembly (traversing an assembly)

SolidworksApi macros