Error defining UI_need help urgently

Please find the .txt file attached. I have been trying to build a
conceptual design program for slabs using RUBY for Sketchup and have
been getting some syntax error messages as shown below. Please help
somebody! thanks…

Error Loading File slab.rb
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:318:
syntax error
defaults4 = [‘1. 0.05’,‘1. 0.05’,‘1. 0.05’,‘1. 0.05’]
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:318:
syntax error
defaults4 = [‘1. 0.05’,‘1. 0.05’,‘1. 0.05’,‘1. 0.05’]
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:318:
syntax error
defaults4 = [‘1. 0.05’,‘1. 0.05’,‘1. 0.05’,‘1. 0.05’]
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:318:
syntax error
defaults4 = [‘1. 0.05’,‘1. 0.05’,‘1. 0.05’,‘1. 0.05’]
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:319:
syntax error
@kx_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:320:
syntax error
@kx_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:321:
syntax error
@ky_nve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:322:
syntax error
@ky_pve = ['1. 0.05 |2. 0.06 |3. 0.07 |4. 0.08 |5. 0.09 |6. 0.10 |7.
0.11 |8. 0.12 |9. 0.13 |10. 0.14 |11. 0.15 |12. 0.16 |13. 0.167 ']
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:324:
syntax error
title4=‘Choose the lower closest value of corresponding ‘K’ as
displayed in the messagebox earlier’
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:324:
syntax error
title4=‘Choose the lower closest value of corresponding ‘K’ as
displayed in the messagebox earlier’
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:405:
syntax error
prompts5 = [‘Span type’]
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:406:
syntax error
defaults5 = [‘1. Simply supported’]
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:407:
syntax error
@t_slab = [‘1. Simply supported |2. Interior span |3. End span |4.
Cantilever’]
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:407:
syntax error
@t_slab = [‘1. Simply supported |2. Interior span |3. End span |4.
Cantilever’]
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:407:
syntax error
@t_slab = [‘1. Simply supported |2. Interior span |3. End span |4.
Cantilever’]
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:407:
syntax error
@t_slab = [‘1. Simply supported |2. Interior span |3. End span |4.
Cantilever’]
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:409:
syntax error
title5=‘Please select the type of the span’
^
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:409:
unterminated string meets end of file
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/slab.rb:409:
syntax error

On Wed, Oct 6, 2010 at 1:13 PM, Atul D. [email protected]
wrote:

Please find the .txt file attached. I have been trying to build a
conceptual design program for slabs using RUBY for Sketchup and have
been getting some syntax error messages as shown below. Please help
somebody! thanks…

You’re missing a closing quote in your definition of prompt4. (A good
editor or IDE with syntax highlighting and autoindent would have
helped find that)

martin

Martin DeMello wrote:

On Wed, Oct 6, 2010 at 1:13 PM, Atul D. [email protected]
wrote:

Please find the .txt file attached. I have been trying to build a
conceptual design program for slabs using RUBY for Sketchup and have
been getting some syntax error messages as shown below. Please help
somebody! thanks…

You’re missing a closing quote in your definition of prompt4. (A good
editor or IDE with syntax highlighting and autoindent would have
helped find that)

martin

Thanks martin… I moified it like u said but am getting the same error
message! wonder whats wrong…

On Wed, Oct 6, 2010 at 7:58 PM, Atul D. [email protected]
wrote:

Thanks martin… I moified it like u said but am getting the same error
message! wonder whats wrong…

Do you have a syntax highlighting and indenting editor, or a ruby
plugin for your favourite IDE? Just select the entire program and hit
autoindent, and the indentation, the highlighting or both should go
awry where it hits any missing terminators, end statements, etc.

See

if you want to pick one out.

Also check this thread out:

martin