# How select a component in structure

**URL:** <https://forums.sketchup.com/t/how-select-a-component-in-structure/48879>\
**Category:** Developers\
**Tags:** sketchup, components\
**Created:** [July 25, 2017, 12:28pm UTC](https://forums.sketchup.com/t/how-select-a-component-in-structure/48879 "2017-07-25T12:28:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremie](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jeremie](https://forums.sketchup.com/u/jeremie)\
**Post date:** [July 25, 2017, 12:28pm UTC](https://forums.sketchup.com/t/how-select-a-component-in-structure/48879/1 "2017-07-25T12:28:23Z")

</div>

Hello,

I try to catch the selection of some component but when the component is in an other component i have to do 3 clicks to acces it.  
For example on the picture

 ![](https://global.discourse-cdn.com/sketchup/original/3X/3/e/3e4cd692428f65c2c8df6d4e53729bb68c5905a6.png)  
I want to create a plugin to reveal and put the component like the litle cube or the litle rolltop on foreground. I want to do this to have an easy way to click on this component and launch other funtion on my api ruby on them after

I try to find a solution but i fail ☹ thanks for help everyone.

---

<div class="post-metadata">

**Author:** ![Wo3Dan](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/wo3dan/32/7450_2.png) [@Wo3Dan](https://forums.sketchup.com/u/Wo3Dan)\
**Post date:** [July 25, 2017, 12:35pm UTC](https://forums.sketchup.com/t/how-select-a-component-in-structure/48879/2 "2017-07-25T12:35:09Z")

</div>

The ‘Outliner’ allows you to drag groups and components from one context to another. You can thus drag a nested component to the highest level, just as an example.

---

<div class="post-metadata">

**Author:** ![jeremie](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jeremie](https://forums.sketchup.com/u/jeremie)\
**Post date:** [July 25, 2017, 12:50pm UTC](https://forums.sketchup.com/t/how-select-a-component-in-structure/48879/3 "2017-07-25T12:50:38Z")

</div>

Thanks for answer,

That one of possibility but the problem is that on my drawing there are lots of component that i want to catch and on the Outliner is not easy to choose the correct component (some have the same name). You have to click on few component to find the one you want.

I try to put them in foreground to make easy to see and click on them but when i click on this all the object is selected not just the litle cube for exemple.

---

<div class="post-metadata">

**Author:** ![john\_mcclenahan](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/john_mcclenahan/32/135377_2.png) [@john\_mcclenahan](https://forums.sketchup.com/u/john_mcclenahan)\
**Post date:** [July 25, 2017, 1:17pm UTC](https://forums.sketchup.com/t/how-select-a-component-in-structure/48879/4 "2017-07-25T13:17:38Z")

</div>

With Xray mode on so you can see what is selected, you can window select the small internal component (drag selection box left to right).

If the small internal component is a subcomponent of the larger box, open the latter for editing first.

[EDIT] I hadn’t registered that you want to do this programmatically, but I remain unclear WHY you need to do that.

---

<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 25, 2017, 6:51pm UTC](https://forums.sketchup.com/t/how-select-a-component-in-structure/48879/5 "2017-07-25T18:51:20Z")

</div>

> [@jeremie](#):
>
> I want to create a plugin to reveal and put the component like the litle cube or the litle rolltop on foreground. I want to do this to have an easy way to click on this component and launch other funtion on my api ruby on them after

Sorry, the SketchUp **API** does not have any method to programmatically put the user interface into the editing context of a group or component. (This is considered an end user function.)

---

<div class="post-metadata">

**Author:** ![john\_drivenupthewall](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@john\_drivenupthewall](https://forums.sketchup.com/u/john_drivenupthewall)\
**Post date:** [July 25, 2017, 8:10pm UTC](https://forums.sketchup.com/t/how-select-a-component-in-structure/48879/6 "2017-07-25T20:10:57Z")

</div>

Unless…

have a look at ClickCuisine DC’s they have the menu as part of the DC…

It’s very advanced DC coding and has a supporting Extension to help things work…

they do offer advanced DC coding training on their site…

john

---

<div class="post-metadata">

**Author:** ![MMay](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@MMay](https://forums.sketchup.com/u/MMay)\
**Post date:** [August 17, 2017, 9:00pm UTC](https://forums.sketchup.com/t/how-select-a-component-in-structure/48879/7 "2017-08-17T21:00:05Z")

</div>

This is a good suggestion. I’m trying it but if the model has a lot of components at different levels it’s difficult to drag them up to level 1. Sometimes they don’t drag easily. Is there another way they can be “batch assigned” to level 1? Thanks,

---

<div class="post-metadata">

**Author:** ![MMay](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@MMay](https://forums.sketchup.com/u/MMay)\
**Post date:** [August 17, 2017, 9:04pm UTC](https://forums.sketchup.com/t/how-select-a-component-in-structure/48879/8 "2017-08-17T21:04:36Z")

</div>

I’ve just been trying same as Jeremie and used your suggestion of Xray and it’s working well for me. I’d like to be able to “batch assign” components that are same but at different nesting levels to the nested level 1. Is there any way this can be easily done? “Drag/drop” within outliner works well but gets much more difficult if there are a lot of components. Hard to see 1st level (collapsing will hide them) and “holding” while dragging “sometimes” lets you move to 1st level, but not always. Sometimes they seem to “freeze”. If you have any thought’s on a “batch reassign levels” that would be great. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sketchup/original/3X/f/2/f2a121500b085ed60806607a82720b092d800bb3.png) [@system](https://forums.sketchup.com/u/system)\
**Post date:** [November 17, 2017, 1:04pm UTC](https://forums.sketchup.com/t/how-select-a-component-in-structure/48879/9 "2017-11-17T13:04:37Z")

</div>

Closed on November 17, 2017, 1:04pm UTC

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.
