Yes, I myself do not understand why a user would want to highlight objects in nested contexts or hidden objects.
Why not use: Model#active_path()
and Model#edit_transform()
as a start point?
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âŚ
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âŚ