thank, Jim
question continue
If I have file ruby script (.rb) example >>>
def create_rect
prompts = [$exStrings.GetString("width"),
$exStrings.GetString("Length"), $exStrings.GetString("F2F"),
$exStrings.GetString("Number of Floor")]
values = [6000.mm, 5000.mm, 4000.mm, 3]
results = inputbox prompts, values, $exStrings.GetString("Floor
Generate")
return if not results
x,y,z,d = results
model = Sketchup.active_model
entities = model.active_entities
0.upto(d-1) do |i|
h = i*z
pts = []
pts[0] = [0,0,h]
pts[1] = [x,0,h]
pts[2] = [x,y,h]
pts[3] = [0,y,h]
pts[4] = [0,0,h]
base = entities.add_face pts
base.pushpull -5
end
end
if( not file_loaded?("rectdialog.rb") )
add_separator_to_menu("Plugins")
UI.menu("Plugins").add_item("rectdialog") { create_rect }
end
file_loaded("rectdialog.rb")
but I want to set value from webdialog UI (html)
How can I should code written in html file ?
On May 12, 4:59 am, Jim <jim....@gmail.com> wrote: