sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Loop object in Selection?

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 770 Views 3 Watching
    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

      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

        @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

          Now I am getting this error. Weird.

          1 Reply Last reply Reply Quote 0
          • R Offline
            RickW
            last edited by

            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
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement