概要
windows11に、sketchup6を入れてみた。
rubyで、3Dを書く。
shadow_infoを調査してみた。
写真
サンプルコード
def testinfo0
model = Sketchup.active_model
shadowinfo = model.shadow_info
ie = UI::WebDialog.new("WEBDialog", true, "WEBDialog", 600, 480, 150, 150, true)
html = "<html><head><meta http-equiv='content-type' content='text/html; charset=Shift_JIS' /></head><body><h2>shadow_info</h2><textarea cols=75 rows=25>"
shadowinfo.each { |key, value|
html += "\n " + key + " : " + value.to_s
}
html += "</textarea></body></html>"
ie.set_html html
ie.show
end
以上。