# Move objects in a group

**URL:** <https://forums.sketchup.com/t/move-objects-in-a-group/155070>\
**Category:** Ruby API\
**Created:** [February 27, 2021, 9:12am UTC](https://forums.sketchup.com/t/move-objects-in-a-group/155070 "2021-02-27T09:12:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vandon.star](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@vandon.star](https://forums.sketchup.com/u/vandon.star)\
**Post date:** [February 27, 2021, 9:12am UTC](https://forums.sketchup.com/t/move-objects-in-a-group/155070/1 "2021-02-27T09:12:21Z")

</div>

[https://global.discourse-cdn.com/sketchup/original/3X/8/6/86a7ccaf16f5c78ffa93ecec3a6d6da601669d5b.mp4](https://global.discourse-cdn.com/sketchup/original/3X/8/6/86a7ccaf16f5c78ffa93ecec3a6d6da601669d5b.mp4)

I don’t know how to describe it. My English is very poor so I have to use google translate. My job sometimes has to change the drawing as shown in the video. For large volumes I need something automatic to save time. I think ruby ​​can do it, but I’m not good at ruby. So I really need everyone’s help to get me the command line to do it.

---

<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:** [February 27, 2021, 1:43pm UTC](https://forums.sketchup.com/t/move-objects-in-a-group/155070/2 "2021-02-27T13:43:40Z")

</div>

What would the rules be for automation ?

---

<div class="post-metadata">

**Author:** ![vandon.star](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@vandon.star](https://forums.sketchup.com/u/vandon.star)\
**Post date:** [February 27, 2021, 5:07pm UTC](https://forums.sketchup.com/t/move-objects-in-a-group/155070/3 "2021-02-27T17:07:25Z")

</div>

![111](https://global.discourse-cdn.com/sketchup/original/3X/0/e/0e87a580d585cf3fd390fcbbcd954c55abecfc39.jpeg)

Thank you for your interest. My job is to draw designs and create cnc files for the machining workshops. But each workshop has 1 type of link (as shown in the picture) of different short length. In the video the red circle is a group with its own layer. I want to move the length of the link screw accordingly. Small quantity is okay. But in large numbers, it is difficult to move by hand. I really need a tool or a script to do that automatically. can you help me

---

<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:** [February 27, 2021, 6:31pm UTC](https://forums.sketchup.com/t/move-objects-in-a-group/155070/4 "2021-02-27T18:31:40Z")

</div>

> [@vandon.star](#):
>
> I want to move the length of the link screw accordingly. Small quantity is okay. But in large numbers, it is difficult to move by hand. I really need a tool or a script to do that automatically. can you help me

I would think that a Dynamic Component (with link length choices) may be a better solution.

There is a forum category to discuss dynamic components:

> **[Dynamic Components](https://forums.sketchup.com/c/sketchup/dynamic-components/17)**
>
> Dynamic Components are a great way to make "smart" components in SketchUp. If you would like to talk about authoring and using Dynamic Components, this is the place to be.

---

<div class="post-metadata">

**Author:** ![vandon.star](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@vandon.star](https://forums.sketchup.com/u/vandon.star)\
**Post date:** [February 28, 2021, 1:47am UTC](https://forums.sketchup.com/t/move-objects-in-a-group/155070/5 "2021-02-28T01:47:53Z")

</div>

> [@DanRathbun](#):
>
> Dynamic Component

Thank you but I don’t want to use Dynamic Component in this case for a lot of reasons
