Save assembly as part

I am a novice with writing code for macro's.  Does anyone have a macro which will save an assembly as a part file to a designated path which is on my desktop?  Any help would be appreciated.

SolidworksApi macros