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

    [Plugin] Script selects the line or face.(UPDATED 15/02/16)

    Scheduled Pinned Locked Moved Plugins
    26 Posts 15 Posters 21.5k Views 15 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.
    • S Offline
      sahi
      last edited by sahi

      The script selects the line or face.

      The first icon >> click on it - and only the lines stand out >> again click on it >> disables script

      The second icon >> click on it - and distinguished only by persons >> again click on it deactivates the script >>


      It selects only the face or edge or hidden lines

      1 Reply Last reply Reply Quote 0
      • Rich O BrienR Offline
        Rich O Brien Moderator
        last edited by

        I added a tutorial to this plugin as I think it is an essential tool in SketchUp. 👍

        Download the free D'oh Book for SketchUp 📖

        1 Reply Last reply Reply Quote 0
        • D Offline
          dtrarch
          last edited by

          Sahi

          Just a killer app and thank you very much

          dtr

          1 Reply Last reply Reply Quote 0
          • mitcorbM Offline
            mitcorb
            last edited by

            Great concept. Congratulations, sahi. And thank you, Rich, for that video.

            Now, a real trick would be to select only vertices. 💚

            I take the slow, deliberate approach in my aimless wandering.

            1 Reply Last reply Reply Quote 0
            • EdsonE Offline
              Edson
              last edited by

              sahi,

              great plugin! I suggest you change the title of this topic to reflect the exact name of your plugin. otherwise people will have a hard time find it, as was my case. something like [Plugin] selection_edge would work nicely. by the same token, why does the name of the plugin reflect what it does? selection_edge does not tell one that it also select faces.

              best regards.

              edson mahfuz, architect| porto alegre • brasil
              http://www.mahfuz.arq.br

              1 Reply Last reply Reply Quote 0
              • mitcorbM Offline
                mitcorb
                last edited by

                How about Plugin: Select/Isolate Edge or Face.
                How about Plugin: Discrete Selection Edge or Face.

                Either one is all yours-- or none of the above.

                I take the slow, deliberate approach in my aimless wandering.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sahi
                  last edited by

                  @rich o brien said:

                  I added a tutorial to this plugin as I think it is an essential tool in SketchUp. 👍

                  Hi!
                  Thanks Rich O Brien

                  PS:I do not speak English so it's hard to explain all the functions of the plug

                  1 Reply Last reply Reply Quote 0
                  • irwanwrI Offline
                    irwanwr
                    last edited by

                    [Edited]
                    Got it. Can see the difference between this plugin with TT Selection Toys.
                    Thank you Sahi, for this one, Axes Comp and Krug. I think this should be one of my "must have" plugin 😄

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cityblueskyz
                      last edited by

                      Thank you very much for sharing
                      It really is a very convenient plug-in 👍

                      1 Reply Last reply Reply Quote 0
                      • pilouP Offline
                        pilou
                        last edited by

                        This sort of selection don't yet existing in another plugins ? ( Selection Toys etc...)

                        Frenchy Pilou
                        Is beautiful that please without concept!
                        My Little site :)

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          snakeysnape
                          last edited by

                          Hi All,

                          I wonder if anybody else is experiencing it, but this plug-in don't work for me when I use it with SU 2014. Previously in SU8 with select face toggled on even if I triple click a model only face would be selected as expected but for SU2014 edges are included in the selection.
                          I hope this gets resolved, as its been a real helpful plugin for me.

                          1 Reply Last reply Reply Quote 0
                          • sdmitchS Offline
                            sdmitch
                            last edited by

                            I have experienced the same results. Works perfectly in SU8 but fails in SU2014 with no errors reported in the Ruby Console.

                            Nothing is worthless, it can always be used as a bad example.

                            http://sdmitch.blogspot.com/

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

                              @snakeysnape said:

                              I hope this gets resolved, as its been a real helpful plugin for me.

                              Until then, you can use Thomthoms selections toys as an alternative for this task.

                              my SketchUp gallery

                              1 Reply Last reply Reply Quote 0
                              • sdmitchS Offline
                                sdmitch
                                last edited by

                                The code

                                edges=sel.grep(Sketchup;;Edge); sel.clear; sel.add edges
                                

                                works in SU2014 but causes a stack error that crashes SU8.

                                Nothing is worthless, it can always be used as a bad example.

                                http://sdmitch.blogspot.com/

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  driven
                                  last edited by

                                  @sdmitch said:

                                  The code...
                                  works in SU2014 but causes a stack error that crashes SU8.

                                  on mac both

                                  sel=Sketchup.active_model.selection
                                  edges=sel.grep(Sketchup;;Edge).to_a; sel.clear; sel.add edges
                                  
                                  sel=Sketchup.active_model.selection
                                  edges=sel.grep(Sketchup;;Edge); sel.clear; sel.add edges
                                  

                                  work in v8 and v2014

                                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                                  1 Reply Last reply Reply Quote 0
                                  • sdmitchS Offline
                                    sdmitch
                                    last edited by

                                    Apparently my v8 is different because it still crashes with that addition.

                                    Nothing is worthless, it can always be used as a bad example.

                                    http://sdmitch.blogspot.com/

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      driven
                                      last edited by

                                      my test file had less than 2000 edges so is it a limit?
                                      john

                                      learn from the mistakes of others, you may not live long enough to make them all yourself...

                                      1 Reply Last reply Reply Quote 0
                                      • sdmitchS Offline
                                        sdmitch
                                        last edited by

                                        No I was using a small sample consisting of 3 or 4 faces.

                                        I did find a solution that works in both SU8 and SU2014 and that was to remove the observer before processing the selection and add it back after while using the selection processing code previously posted.

                                        	def onSelectionBulkChange(selection)
                                        		Sketchup.active_model.selection.remove_observer self
                                        		get_selection_edge(selection) if(@select_edge)
                                        		# get_selection_edge_smooth(selection) if(@edge_smooth)
                                        		get_selection_face(selection) if(@select_face)
                                        		Sketchup.active_model.selection.add_observer self
                                        	end
                                        
                                        

                                        Nothing is worthless, it can always be used as a bad example.

                                        http://sdmitch.blogspot.com/

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          snakeysnape
                                          last edited by

                                          Hi Sdmitch,

                                          Sorry but can you post the fixed plugin in here? I am confused as to where to put the selection code.

                                          thanks

                                          1 Reply Last reply Reply Quote 0
                                          • sdmitchS Offline
                                            sdmitch
                                            last edited by

                                            @snakeysnape said:

                                            Hi Sdmitch,

                                            Sorry but can you post the fixed plugin in here? I am confused as to where to put the selection code.

                                            thanks

                                            With apologies to Sahi.


                                            selection_edge.rb

                                            Nothing is worthless, it can always be used as a bad example.

                                            http://sdmitch.blogspot.com/

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

                                            Advertisement