Even when I run the code above, the thumbnail doesn’t change from the selected component definition. Do you also experience this? Or is it my SketchUp installation.
UI#refresh_inspectors-class_method Tells SketchUp to refresh all inspectors such as the Component Browser and the Outliner. This is useful when you need to manually force a refresh after you’ve made a change to the document via Ruby. Generally, SketchUp will keep these in sync for you, but occasionally it does not, such as when model.start_operation has disabled UI updates.