# How to change group axis using ruby code?

**URL:** <https://forums.sketchup.com/t/how-to-change-group-axis-using-ruby-code/129494>\
**Category:** Ruby API\
**Created:** [June 25, 2020, 1:38pm UTC](https://forums.sketchup.com/t/how-to-change-group-axis-using-ruby-code/129494 "2020-06-25T13:38:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 25, 2020, 8:00pm UTC](https://forums.sketchup.com/t/how-to-change-group-axis-using-ruby-code/129494/2 "2020-06-25T20:00:47Z")

</div>

This has been answered already. Please learn how to search the Ruby API category.

- [Setting axes of a Group](https://forums.sketchup.com/t/setting-axes-of-a-group/102106)

So in this other topic, it is explained how to create a transformation and apply it to the group’s definition’s entities collection.

* * *

There is also a more complex code example in this topic (if instances need to be adjusted) …  
[[Partially Solved] Rotation transformation not working for me - why not? - #8 by eneroth3](https://forums.sketchup.com/t/partially-solved-rotation-transformation-not-working-for-me-why-not/126646/8)

---

_[View the full topic](https://forums.sketchup.com/t/how-to-change-group-axis-using-ruby-code/129494)._
