Extract eDrawings from SW Docs in PDMWorks

Anybody could help me solve this PDMWorks API example?SolidworksApi macros