Use the Replace Solid dialog to replace solid1 with solid2, and keep the machine design attributes from solid1, such as parent/child relationships, movement, and so on.