List parts in a assembly (SLDASM)

Can anybody help?

I want to list the parts in a SolidWorks 2005 assembly (SLDASM) to the debug window using a VBA macro.

Has anybody written a macro to do this?

For example....

If I had an Assembly (SLDASM) open containing 10 different parts

how can I list them to the debug window

eg

Item 1     Part1.SLDPRT     4-OFF

Many thanks in advance!!!

Regards

Darren

SolidworksApi macros