Inserting a part into a partdocument

Guys, I need help in  inserting a part into a  part document

When I debug the code, it throws an error.

I've attached screen shots for your reference

Can you please help me

Thanks in advance

SolidworksApi macros