PDMWorks API

I need help on how to create a subproject through api. How doyou set the parent project?

Also, does anyone have a good way to log in through api? I have ithard coded for testing.

ThanksSolidworksApi macros