VBA Macro - List "Derived Parts" in an Assembly

Can anybody help???

I have an assembly containing parts that have been created from another part.

For example,

I have created a standard part that is used to create other parts. This standard part is a laser cut profile. This part is then used to create other parts that have tapped holes or other features in (slots, holes etc)

The problem is that the macro that I have to export the bill of materials to a text file does not list these derived parts.

Does anybody know how I can list the derived parts into, for example only, a msgbox???

Many thanks in advance!!!

Darren

SolidworksApi macros