Highlight detect tool - nested instances

Yes, I myself do not understand why a user would want to highlight objects in nested contexts or hidden objects.

1 Like

Why not use: Model#active_path() and Model#edit_transform() as a start point?

2 Likes

Imagine a wooden box with dynamic components. In the empty part of the box, there will be a hidden component (or it may not be hidden, but its lines are) that is responsible for storing information about the empty space, such as x, y, z, lenx, leny, and lenz. Highlight this component, retrieve its information, and place another one in its place. Basically, the dynamic component is a container for storing information that will be used in another component.

Thank you for your code, I will test it further.

Thanks…

Before testing the code and trying some of the suggestions I did ask myself what the context is for highlighting the bounding boxes. Maybe some cool or weird thing is being devised? Or maybe there’s a better way to get results? I didn’t have a sense of clarity about the problem being solved. That’s why I was asking. I didn’t get a chance to try the latest suggestion…I see the OP typing…

1 Like

Is the wooden box a Dynamic Component? Is the box a rectangular solid (solid component)? The ‘empty space’ is like the volume of the shape and its ‘location’ is like where the bounding box is (or could be associated with that ‘location’) and there is an axis for this ‘location’…

It sounds like you want to swap one component for another. Select (or hover over) → Highlight → swap.

What’s the ‘information’ to retrieve? SketchUp kinda ‘knows’ where the first component is when you select it.

Yes, basically that

Position and size information: x, y, z, lenx, leny, lenz…