Create Sweep in new part based on another part

How would I create a sweep using an edge in another part?

I have the edges selected and can enumerate over them. I just haveto "copy" them to a new part and use them with aInsertProtrusionSwept3 to create the sweep. But how does one dosuch a thing?

Unless there is a better way? I simply want to create a sweep usingan edge/path/curve from another part. (Believe me, I know I can dothis by hand but I have simplified)

SolidworksApi macros