This tool (version 1.1) seems very useful .. However, It won't work for me.
It will not complete after the last input
and the blue-pencil pointer stays visible.
It won't complete after :
Cone or Pyramid, 3rd click
Sphere, 2nd click
Rotated Pyramid, 4th click
Dodecahedron, 2nd click
Icosahedron, 2nd click
Any thoughts ?
Is there some kind of setting in SU ?
IE., Cone or Pyramid - Ruby console :
Error: #<NoMethodError: undefined method GetString' for nil:NilClass> C:/Program Files/Google/Google SketchUp 8/Plugins/3dshapestool.rb:616:in
create_geometry'
C:/Program Files/Google/Google SketchUp 8/Plugins/3dshapestool.rb:555:in increment_state' C:/Program Files/Google/Google SketchUp 8/Plugins/3dshapestool.rb:213:in
onLButtonDown'
C:/Program Files/Google/Google SketchUp 8/Plugins/3dshapestool.rb:616
Many Thanks,
I found a solution !
the problem is with this line in the script :
model.start_operation $exStrings.GetString("shapename")
I could not find the .GetString method anywhere ( after more hours of research than I care to mention).
apperantly, this error message occurs often without meaningfull documentation to remedy. I think
.GetString is some sort-of depricated method in Ruby or OpenGL or something like that ...
I created a class variable for each shapename
placed between 'class PyramidTool' (line 29) and the first 'def Initialize' (line 36 +- ) :
@@threedcone = "Cone"
@@threedpyramid = "Pyramid"
@@threedsphere = "Sphere"
@@threedpolyhedron = "Polyhedron"
@@threeddodecahedron = "Dodecahedron"
@@threedicosahedron = "Icosahedron"
Then I simply replaced every occurance (7) of:
model.start_operation $exStrings.GetString("shapename")
with,
model.start_operation @@_shapename_ . . . . eg. @@threedcone
Done . . . I hope this helps anyone having this problem with the .GetString method
I have several scripts with this that do work ... but, I plan on modifing them also.
Cheers