sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Select Curve

    Scheduled Pinned Locked Moved Plugins
    37 Posts 16 Posters 43.7k Views 16 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.
    • Dave RD Offline
      Dave R
      last edited by

      @watkins said:

      Dear Thomas,

      Can your script be modified to both find a 'circle' and to 'recreate' that 'circle' so that it has the correct entity assignment (not a curve, nor an arc, but a circle).

      Kind regards,
      Bob

      Dear Bob,

      Although it won't change the Entity description from 'Curve' to 'Circle', Weld.rb will at least make it select like a circle. Would that help?

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Ken - what kind of machine are you creating there?? 😲 😮

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • ken28875K Offline
          ken28875
          last edited by

          @thomthom said:

          Ken - what kind of machine are you creating there?? 😲 😮

          Hi Thomas,

          I am working on a time traveling machine. I will go back 15 years ago when I was an architecture student and will create Sketchup so I can do crazy stuff instead of using pencil, markers, spray paints, and tracing paper. 😉

          Just kidding. 😄

          It is for a contest I am doing that is due next month. http://news.deviantart.com/article/128272/

          You can see some of the WIP here: http://forums.sketchucation.com/viewtopic.php?f=81&t=27030

          Have a nice week!

          _KN

          Follow Your Dreams.

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            Ooh, sweet prices. I don't really pay attention any more what goes on at dA...

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • W Offline
              watkins
              last edited by

              Dear David,

              My usual method is as follows:

              a) Find the centre of the broken circle, and mark with a cpoint.
              b) Using the cpoint, draw a circle over the broken circle and delete any unwanted face so formed.
              c) Use move+copy to move copies of the reconstructed circle entity up/down to recreate other broken circles.

              For point c), think of a simple circular flange and copying the top outer edge to the bottom outer edge (same diameter)using move+copy.

              The above method reconstructs the circle and re-assigns the entity 'circle' to the feature, but it takes time and one has to be careful to delete unwanted faces.

              Yes, I could use weld, but the resulting feature has the assignment 'curve' rather than circle, which excludes the use of 'point at centre', which I use frequently for alignment. Chris Fullmer's Arc Centrepoint Finder has helped enormously, but it would be nice to revolve a shape and have circles formed. Thank you for considering my request.

              Kind regards,
              Bob

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                So simply drawing an arc or circle over an broken acr/circle mends it? hmmm

                I already have the code to find the centre of exploded curves...
                http://forums.sketchucation.com/viewtopic.php?f=323&t=30506&p=267835&hilit=[Plugin]#p267835

                Thomas Thomassen — SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • winoooW Offline
                  winooo
                  last edited by

                  Awesome,thx

                  [www.mffw.blogspot.com](http://sketchucation.com/click.php?url)

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    horizon
                    last edited by

                    I have managed to install your select curve on my laptop running xp but it will not load on my desktop running win 7... i wonder if there is an issue with it being a 64 bit machine?

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      64bit is no issue. I run 64bit Win7.

                      Do you get any errors or anything?

                      Thomas Thomassen — SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • O Offline
                        Orthogon
                        last edited by

                        Excellent, works cleanly. But wondering why it isn't added to the right-click context menu, where one usually looks for such things -?

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          Mythos
                          last edited by

                          Thank you very much for this plugin. I like a lot! I want to propose a little improvement: Would it be possible to let the user even click on a face to automatically select all edges by this tool?

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

                            Although the "improvement" might be possible, since you'd already have the Select tool active, why not just double click on the face? That would select all of the bounding edges of the face without the added step of activating a plugin.

                            Etaoin Shrdlu

                            %

                            (THERE'S NO PLACE LIKE)

                            G28 X0.0 Y0.0 Z0.0

                            M30

                            %

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              Mythos
                              last edited by

                              @dave r said:

                              why not just double click on the face?

                              Certainly you are right, but then you have to press SHIFT wait a second (to avoid tripple clicking) and then you have to click again to deselect the face (since you only want the edges be selected). It would be much more convenient to have a curve-only selection tool that even can select the edges of a clicked face.

                              1 Reply Last reply Reply Quote 0
                              • cottyC Offline
                                cotty
                                last edited by

                                @mythos said:

                                Thank you very much for this plugin. I like a lot! I want to propose a little improvement: Would it be possible to let the user even click on a face to automatically select all edges by this tool?

                                A quick way for this: select outer edges (Chris Fullmer) with a shortcut assigned

                                my SketchUp gallery

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by

                                  I use Selection Toys to quickly filter out entity types. I have Edges on Ctrl+1 and Faces on Ctrl+2, Groups and Components on Ctrl+3 and Ctrl+4.
                                  Then I have Ctrl+Shift+n to deselect. Those shortcuts are easily accessible to my left hand which is always on the keyboard while I model. Quite flexible setup.

                                  Thomas Thomassen — SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    Mythos
                                    last edited by

                                    @thomthom said:

                                    I use Selection Toys to quickly filter out entity types. I have Edges on Ctrl+1 and Faces on Ctrl+2, Groups and Components on Ctrl+3 and Ctrl+4.

                                    Nice, I change my hotkeys to use this setup too. But I think it would be very intuitive to have the normal select operation (which selects the face first) and a curve-based select operation (which forcly grabs the edges even if applied on faces). Since the "Select Curve" plugin currently doesn't operate at all on faces it would be just a nice addition that makes the "Select Curve" tool a little bit more powerful.

                                    1 Reply Last reply Reply Quote 0
                                    • IltisI Offline
                                      Iltis
                                      last edited by

                                      Hello @thomthom, thank you very much for this very usefull plugin.

                                      Is there a way to add a modified cursor? (I can draw it if you tell me the specifications.)

                                      1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        KropocLeckor
                                        last edited by

                                        Hello, thomthom. I used Select Curve mainly on SU2015 and 2016 before I migrated to 2019. I use SelectCurve with a shortcut (Shift+C). But in 2019, when I pressed it, other tool pallets will pop up. Never SelectCurve. Changing Shortcut doesn't change anything. Same tool pallets still pop up. I remove/uninstall that particular plugin. And press again..another tool pallets will pop up. Why this happening? 😕

                                        Link Preview Image
                                        Select Curve

                                        Discover the magic of the internet at Imgur, a community powered entertainment destination. Lift your spirits with funny jokes, trending memes, entertaining gifs, inspiring stories, viral videos, and so much more from users.

                                        favicon

                                        Imgur (imgur.com)

                                        Thank you

                                        1 Reply Last reply Reply Quote 0
                                        • IltisI Offline
                                          Iltis
                                          last edited by

                                          Hi @thomthom and folks,

                                          I just managed to insert custom cursors to this usefull plugin.
                                          Attached are the .png files.
                                          The images are in the same folder than "core.rb"

                                          And this is the code :

                                          def initialize(settings)
                                                @settings = settings
                                                
                                          		folder_path = File.dirname(__FILE__)
                                          		
                                          		cursor_name = 'cursor_select_curve.png'
                                          		cursor_select_curve_path = File.join(folder_path, cursor_name)
                                          	   @result = File.file?(cursor_select_curve_path)
                                          	   unless @result
                                          		  msg = "Can't find the 'cursor icon' path"
                                          		  UI.messagebox(msg, MB_OK)
                                          		  return
                                          		end
                                          		
                                          		cursor_name = 'cursor_select_curve_plus.png'
                                          		cursor_select_curve_plus_path = File.join(folder_path, cursor_name)
                                          	   @result = File.file?(cursor_select_curve_plus_path)
                                          	   unless @result
                                          		  msg = "Can't find the 'cursor icon' path"
                                          		  UI.messagebox(msg, MB_OK)
                                          		  return
                                          		end
                                          		
                                          		cursor_name = 'cursor_select_curve_minus.png'
                                          		cursor_select_curve_minus_path = File.join(folder_path, cursor_name)
                                          	   @result = File.file?(cursor_select_curve_minus_path)
                                          	   unless @result
                                          		  msg = "Can't find the 'cursor icon' path"
                                          		  UI.messagebox(msg, MB_OK)
                                          		  return
                                          		end
                                          		
                                          		cursor_name = 'cursor_select_curve_plus_minus.png'
                                          		cursor_select_curve_plus_minus_path = File.join(folder_path, cursor_name)
                                          	   @result = File.file?(cursor_select_curve_plus_minus_path)
                                          	   unless @result
                                          		  msg = "Can't find the 'cursor icon' path"
                                          		  UI.messagebox(msg, MB_OK)
                                          		  return
                                          		end
                                          		
                                          		@cursor_select        = UI.create_cursor(cursor_select_curve_path, 9, 5)
                                                # @cursor_select        = TT;;Cursor.get_id( ;select )
                                                @cursor_select_add    = UI.create_cursor(cursor_select_curve_plus_path, 9, 5)
                                                # @cursor_select_add    = TT;;Cursor.get_id( ;select_add )
                                                @cursor_select_remove = UI.create_cursor(cursor_select_curve_minus_path, 9, 5)
                                                # @cursor_select_remove = TT;;Cursor.get_id( ;select_remove )
                                          		@cursor_select_toggle = UI.create_cursor(cursor_select_curve_plus_minus_path, 9, 5)
                                                # @cursor_select_toggle = TT;;Cursor.get_id( ;select_toggle )
                                          		
                                                @ctrl   = false
                                                @shift  = false
                                              end
                                          

                                          (I'm not good in Ruby, sorry)

                                          Hope this helps.
                                          Renaud


                                          cursor_select_curve.png


                                          cursor_select_curve_minus.png


                                          cursor_select_curve_plus.png


                                          cursor_select_curve_plus_minus.png

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

                                          Advertisement