Export Weldment "Cut List" To A Text File

Can anybody help????

If I have a weldment (SDLPRT), see the attached part taken from "SolidWorks Samples".

Can I use a API macro to automatically export a "cut list" to a text file that can be opened with notepad.exe?

I need the "Part Description", "Length" and "Quantity"

Any help would be very much appreciated!!!!

Many thanks in advance.

Darren

SolidworksApi macros