6 messages in com.googlegroups.sketchuprubyRe: help me about method to do webdialog
FromSent OnAttachments
fufu11 May 2008 10:19 
Jim11 May 2008 14:58 
fufu12 May 2008 06:20 
Jim12 May 2008 14:36 
fufu15 May 2008 08:36 
Jim17 May 2008 15:09 
Subject:Re: help me about method to do webdialog
From:fufu (ifev@gmail.com)
Date:05/12/2008 06:20:25 AM
List:com.googlegroups.sketchupruby

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: