make sure you are creating a transaction
before using this code,select the elements you want to copy
foreach(ElementId eid in eids)
{
XYZ newplace= new XYZ(x,y,z);
var g = ElementTransformUtils.CopyElement(document, eid, newplace);
}
this code will also copy the wall belongings.