私はこのコードをruby sketchupコンソールで実行しています。ruby、sketchup-入力ボックスに別のテキストボックスを追加
prompts = ["Stair Width", "Travel","Tread Thickness","Total Height","Riser Thickness","Stringer Width","Stringer Thickness","Top Hanger Thickness","Customer","Customer Address","Top Hanger Nose","Stair Nose","Flight"]
defaults = [36.0,0.00,1.0,0.00,0.5,11.25,1.25,0.5,"My Builder", "234 Jimmys Street","Yes","Yes","Main"]
list=["","","","","","","","","","", "Yes|No","Yes|No"]
input = UI.inputbox prompts, defaults,list, "Stair Info"
a,b,c,d,e,f,g,h,i,j,k,l,m=input
cst=i.to_s
adr=j.to_s
ent = Sketchup.active_model.entities
tr=(d/8.0).ceil
rise=d/tr
run=((b-(1+h))/(tr-1))
私は「全高」入力ボックスの横に追加のテキストボックスを追加し、「全高」入力ボックスを終了するときに等しいTRしたいと思います。 「合計高さ」入力ボックスの横にテキストボックスを追加し、「全高」入力ボックスを離れると「tr」に等しい方法がありますか?