I use the following to do that
using (doc.LockDocument())
{
using (Database dbase = new Database(true, false))
{
dbase.WblockCloneObjects(ids, dbase.CurrentSpaceId, new IdMapping(), DuplicateRecordCloning.Replace, false);
dbase.SaveAs(cncDwg, DwgVersion.Current);
}
}