Is there a script that will replace a shape with another shape?

 From:  Matadem
11945.5 
Attached file

the one on top is what I have...the one at the bottom is the desired outcome.

Tnx!
Attachments: