# Move a group....API Ruby

**URL:** <https://forums.sketchup.com/t/move-a-group-api-ruby/130338>\
**Category:** Ruby API\
**Created:** [July 5, 2020, 9:35pm UTC](https://forums.sketchup.com/t/move-a-group-api-ruby/130338 "2020-07-05T21:35:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [July 6, 2020, 1:43pm UTC](https://forums.sketchup.com/t/move-a-group-api-ruby/130338/5 "2020-07-06T13:43:53Z")

</div>

I looked at your model, and as I suspected, the hole is **not** a subgroup. It is primitive geometry.

To relocate primitive geometry, you need to use the [`Entities.transform_entities`](https://ruby.sketchup.com/Sketchup/Entities.html#transform_entities-instance_method) method.

As for your code, I’m sorry but I do not read Italian so it is too difficult to even try to figure out where the error is.

---

_[View the full topic](https://forums.sketchup.com/t/move-a-group-api-ruby/130338)._
