Retrieve CutListItems

The Document Manager has a method GetCutListItems2(). How can this be achieved using the SolidWorks API from inside an addin or can the Document Manager methods be used from within an addin too.

SolidworksApi macros