macro for a cuting list

Hi guys I have a macro how to generate dxf from a sheet metal assembly but I want if is possible a cut list.
Every time when I change the variables in my assembly I want to add another line with length and width of my parts.
It can be excel list or whatever as long as I can print.
Thanks.
SolidworksApi/macros