Loop object in Selection?
-
I was trying out Chris' SketchyBevel and couldn't get it to work right, so I did some experimenting. I found when it was calling erase! on each entity in the selection, a Loop object was part of the selection set.
Apparently, no one else is having this problem?
Here's the offending line:
Sketchup.active_model.selection.each{|e|e.erase!}
Error; #<NoMethodError; undefined method `erase!' for #<Sketchup;;Loop;0xcafec60>> C;/Program Files/Google/Google SketchUp 6/Plugins/SketchyBevel.rb;255;in `bevel' C;/Program Files/Google/Google SketchUp 6/Plugins/SketchyBevel.rb;255;in `each' C;/Program Files/Google/Google SketchUp 6/Plugins/SketchyBevel.rb;255;in `bevel' C;/Program Files/Google/Google SketchUp 6/Plugins/SketchyBevel.rb;28 C;/Program Files/Google/Google SketchUp 6/Plugins/SketchyBevel.rb;23;in `call'
-
@jim said:
I was trying out Chris' SketchyBevel and couldn't get it to work right, so I did some experimenting. I found when it was calling erase! on each entity in the selection, a Loop object was part of the selection set.
Apparently, no one else is having this problem?
Here's the offending line:
Sketchup.active_model.selection.each{|e|e.erase!}
Error; #<NoMethodError; undefined method `erase!' for #<Sketchup;;Loop;0xcafec60>> > C;/Program Files/Google/Google SketchUp 6/Plugins/SketchyBevel.rb;255;in `bevel' > C;/Program Files/Google/Google SketchUp 6/Plugins/SketchyBevel.rb;255;in `each' > C;/Program Files/Google/Google SketchUp 6/Plugins/SketchyBevel.rb;255;in `bevel' > C;/Program Files/Google/Google SketchUp 6/Plugins/SketchyBevel.rb;28 > C;/Program Files/Google/Google SketchUp 6/Plugins/SketchyBevel.rb;23;in `call'
I haven't been able to reproduce this. Can you post the model?
-
Now I am getting this error. Weird.
-
There's a strange ...something... in SU that adds all kinds of non-geometric stuff to the selection set. Todd and I requested it be "fixed" (at least changed), to only add geometric objects to the selection set. After all, who wants to filter out loops, materials, etc., when all we really need to deal with are edges, curves, and faces?
So far, no internal fixes, so we're left to filter objects.
Advertisement