OK, I see where you were going and your code does work but it does not actually assign the newGCS to all the views, it adds the GSC to the dialog but does not make it ACTIVE. I have similar code that can pull in the newGCS, without the error handeling witch I like and will incorporate.
There is a keyin "ACS ACTIVATE ALL" it does not seem to work an GCS only ACS definitions for some reason.
My original issue is how to make the newGCS active in all views? ACS ACTIVATE ALL does not work for GCS.