I've not done that sort of thing in a long while, but most editors should be able to do this. I think the trick is first to change all the X's to some other unused letter like maybe U or W (think carefully!) Then change your Y's to X's, then change your U's (or W) to Y's.
You'd probably have to change arc center coordinates with a similar method.
Then you should run the program through a simulator to see if it still looks right, maybe something like NCplot.
First you get good, then you get fast. Then grouchiness sets in.
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)