Also see past topics …
Search Ruby API category … https://forums.sketchup.com/search?q=copy%20group%20category%3A13