Dear Vikash, I'll leave the details to somebody else, perhaps Dave himself. What exactly are you trying to do? Why do you need to replace a window with another one? Could you perhaps give an example of a context where the thing you are trying to do would be useful? Cheers, Shérab.