Line weight Settings

Please tell me how to set the printing lineweights for thin,normal and thick lines
using API.

record macro is not generating the code for that. Please help.
SolidworksApi macros