How select a component in structure

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


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 :frowning: thanks for help everyone.

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.

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.

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.

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.)

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

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,

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.

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