I need to programmatically move a Component from one Package to another Package.
(equivalent to Cut and Paste)
Searching around I see that there is now an Element Clone method but I could not find out how to use it.
I can see that I can add an Element to a package by doing
var destElement = destPackage.Elements.AddNew(srcElement.Name, srcElement.Type);
but how do I set the destination Element attributes ?
I can clone an Element within its parent package by doing
var destElement = srcElement.Clone();
But how do I then move it to destPackage ?
Thanks