• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Loop object in Selection?

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 3 Posters 770 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    Jim
    last edited by 13 May 2008, 23:15

    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'
    

    Hi

    1 Reply Last reply Reply Quote 0
    • C Offline
      CPhillips
      last edited by 14 May 2008, 01:15

      @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?

      1 Reply Last reply Reply Quote 0
      • C Offline
        CPhillips
        last edited by 14 May 2008, 01:58

        Now I am getting this error. Weird.

        1 Reply Last reply Reply Quote 0
        • R Offline
          RickW
          last edited by 14 May 2008, 15:04

          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.

          RickW
          [www.smustard.com](http://www.smustard.com)

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement