# How to open (activate) a group via the ruby API

**URL:** <https://forums.sketchup.com/t/how-to-open-activate-a-group-via-the-ruby-api/43105>\
**Category:** Ruby API\
**Tags:** group\
**Created:** [April 17, 2017, 6:43pm UTC](https://forums.sketchup.com/t/how-to-open-activate-a-group-via-the-ruby-api/43105 "2017-04-17T18:43:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![slbaumgartner](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/slbaumgartner/32/7302_2.png) [@slbaumgartner](https://forums.sketchup.com/u/slbaumgartner)\
**Post date:** [April 17, 2017, 7:05pm UTC](https://forums.sketchup.com/t/how-to-open-activate-a-group-via-the-ruby-api/43105/3 "2017-04-17T19:05:24Z")

</div>

The concept of a Group or Component being “open for edit” or the “active context” comes purely from the GUI, where a user needs to access a Group or Component’s Entities to manipulate them. Are you trying to program something that will make a particular Group or Component active and then turn over control for the user to edit it via the GUI? Otherwise, as @TIG pointed out, your Ruby code can directly access the Entities collection of any Group or ComponentDefinition regardless of what is active in the GUI.

---

_[View the full topic](https://forums.sketchup.com/t/how-to-open-activate-a-group-via-the-ruby-api/43105)._
