Dear Dan
Many thanks for troubling to reply. But I am still stuck! The Inspector just updates when the loop is finished.
require 'sketchup'
UI.menu("PlugIns").add_item("Change Date") { change_date_loop }
def change_date_by_one_day
Sketchup.active_model.shadow_info["ShadowTime_time_t"] =
Sketchup.active_model.shadow_info["ShadowTime_time_t"] + 606024
shadowinfo = Sketchup.active_model.shadow_info
UI.refresh_inspectors()
refreshed_view = Sketchup.active_model.active_view.refresh
end
def change_date_loop
for the_step in 1..365
sleep(0.025)
change_date_by_one_day
end
end