Update Cut List

How should look a macro that update automatically the Cut List???

SolidworksApi macros